New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web: catch OSError crash #88
Conversation
2015-06-09 17:16:09 CRITICAL ERROR <handler[*][read] (HTTP._on_read)> (<read[web] (<ssl.SSLSocket [closed] fd=-1, family=AddressFamily.AF_INET, type=2049, proto=0>, b'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nConnection: close\r\nContent-Length: 4\r\nUser-Agent: Python-urllib/3.4\r\nHost: example.com\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nlog=test' )>) (<class 'OSError'>): OSError(9, 'Bad file descriptor') File "circuits/circuits/core/manager.py", line 668, in _dispatcher value = event_handler(*eargs, **ekwargs) File "circuits/circuits/web/http.py", line 270, in _on_read headers=parser.get_headers(), server=self._server File "circuits/circuits/web/wrappers.py", line 186, in __init__ name = sock.getsockname()
Erroneous patch? :) |
this patch does not resolve the source of the problem (multiple OSError appears in circuits, when web ssl are used) ^^ |
Ahh got a traceback and something to report as an issue? |
OsError appear random (one part of the web requests working properly):
|
Hmm is this a case of the peer has shutdown it's end mid-way through the request/response? |
that's what I suspect |
when reverse proxy used: it work INTERNET <=> circuit (web with ssl): OsError appear random |
Ahh interesting :) |
I don't quite understand when this happens. Can you explain it to me? |
@spaceone this error appear randomly (source unknown) |
2015-06-09 17:16:09 CRITICAL ERROR <handler[*][read] (HTTP._on_read)> (<read[web] (<ssl.SSLSocket [closed] fd=-1, family=AddressFamily.AF_INET, type=2049, proto=0>, b'POST / HTTP/1.1\r\nAccept-Encoding: identity\r\nConnection: close\r\nContent-Length: 4\r\nUser-Agent: Python-urllib/3.4\r\nHost: example.com\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nlog=test' )>) (<class 'OSError'>): OSError(9, 'Bad file descriptor') File "circuits/circuits/core/manager.py", line 668, in _dispatcher
value = event_handler(_eargs, *_ekwargs)
File "circuits/circuits/web/http.py", line 270, in _on_read
headers=parser.get_headers(), server=self._server
File "circuits/circuits/web/wrappers.py", line 186, in init
name = sock.getsockname()