Revision 0be13136 lib/http/__init__.py
b/lib/http/__init__.py | ||
---|---|---|
401 | 401 |
if event is None: |
402 | 402 |
raise HttpSocketTimeout() |
403 | 403 |
|
404 |
if (op == SOCKOP_RECV and
|
|
405 |
event & (select.POLLNVAL | select.POLLHUP | select.POLLERR)):
|
|
406 |
return ""
|
|
404 |
if event & (select.POLLNVAL | select.POLLHUP | select.POLLERR):
|
|
405 |
# Let the socket functions handle these
|
|
406 |
break
|
|
407 | 407 |
|
408 | 408 |
if not event & wait_for_event: |
409 | 409 |
continue |
... | ... | |
845 | 845 |
# the CRLF." |
846 | 846 |
if idx == 0: |
847 | 847 |
# TODO: Limit number of CRLFs/empty lines for safety? |
848 |
buf = buf[:2]
|
|
848 |
buf = buf[2:]
|
|
849 | 849 |
continue |
850 | 850 |
|
851 | 851 |
if idx > 0: |
Also available in: Unified diff