-
-
Save clayg/3b8fb343786efe1b1e34 to your computer and use it in GitHub Desktop.
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
vagrant@saio:~$ python /vagrant/.scratch/patch_httplib.py | |
> /vagrant/.scratch/patch_httplib.py(10)<module>() | |
-> resp = conn.getresponse() | |
(Pdb) l | |
5 | |
6 conn = green_httplib.HTTPConnection('127.0.0.1', 6012) | |
7 conn.request('GET', '/sdb1/802/AUTH_test') | |
8 import pdb | |
9 pdb.set_trace() | |
10 -> resp = conn.getresponse() | |
11 resp.read() | |
[EOF] | |
(Pdb) httplib | |
<module 'httplib' from '/usr/lib/python2.7/httplib.py'> | |
(Pdb) httplib._MAXHEADERS | |
1024 | |
(Pdb) green_httplib | |
<module 'eventlet.green.httplib' from '/usr/local/lib/python2.7/dist-packages/eventlet/green/httplib.pyc'> | |
(Pdb) green_httplib._MAXHEADERS | |
1024 | |
(Pdb) s | |
--Call-- | |
> /usr/lib/python2.7/httplib.py(1015)getresponse() | |
-> def getresponse(self, buffering=False): | |
(Pdb) _MAXHEADERS | |
100 | |
(Pdb) |
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 httplib as httplib | |
httplib._MAXHEADERS = 1024 | |
from eventlet.green import httplib as green_httplib | |
green_httplib._MAXHEADERS = 1024 | |
conn = green_httplib.HTTPConnection('127.0.0.1', 6012) | |
conn.request('GET', '/sdb1/802/AUTH_test') | |
import pdb | |
pdb.set_trace() | |
resp = conn.getresponse() | |
resp.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment