This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node server (8301) to curl client (44366) | |
HTTP/1.1 200 OK | |
Content-Type: application/zip | |
Content-Disposition: attachment; filename="bigFile.zip" | |
Content-Length: 10001676 | |
Last-Modified: Thu, 02 Feb 2012 11:50:07 UTC | |
Connection: keep-alive | |
PK....... etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('http').createServer(function(req, resp) { | |
console.log('start', req.connection.remoteAddress, req.connection.remotePort); | |
resp.end(); | |
console.log('end', req.connection.remoteAddress, req.connection.remotePort); | |
}).listen(5000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup | |
setup( | |
name='test-dep-two', | |
version='1.0', | |
install_requires=['pytz'] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup | |
setup( | |
name='test-dep-one', | |
version='1.0', | |
install_requires=[ | |
'python-dateutil', | |
'test-dep-two' | |
], | |
dependency_links=[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import salt.states.x509 | |
from salt.states.x509 import * | |
from salt.states.x509 import _get_file_args | |
del certificate_managed | |
def __init__(opts): | |
salt.states.x509.__salt__ = __salt__ | |
salt.states.x509.__states__ = __states__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- salt/client/mixins.py | |
+++ salt/client/mixins.py | |
@@ -10,8 +10,8 @@ | |
import logging | |
import weakref | |
import traceback | |
-import collections | |
import copy as pycopy | |
+from collections.abc import Mapping, MutableMapping | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need to bypass module loader in order to access private functions | |
from salt.modules import postgres | |
def __init__(opts): | |
postgres.__grains__ = __grains__ | |
postgres.__opts__ = opts | |
postgres.__salt__ = __salt__ | |