classification
Title: httplib: false BadStatusLine() raised
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.2, Python 3.1, Python 2.7, Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: djc, mschu, orsenthil
Priority: normal Keywords:

Created on 2010-04-18 22:45 by mschu, last changed 2011-03-18 02:09 by orsenthil.

Messages (1)
msg103545 - (view) Author: (mschu) Date: 2010-04-18 22:45
Independent from HTTP strict, an invalid BadStatusLine() exception is raised when a keep-alive connection exceeds its timeout:

client->server <request>
s->c <answer>
<connection timeout passing>
s->c: FIN/ACK
c->s: ACK
c->s: <get request>/FIN
s->c: RST (without data)

which raises the exception.

An easy workaround is to either poll information often enough for the server to not close the connection or close and reopen the connection. However, the exception is misleading.
History
Date User Action Args
2011-03-18 02:09:35orsenthilsetassignee: orsenthil
nosy: orsenthil, djc, mschu
2010-08-03 14:17:27djcsetnosy: + djc
2010-04-19 12:24:16pitrousetpriority: normal
nosy: + orsenthil

versions: + Python 3.1, Python 2.7, Python 3.2
2010-04-18 22:45:28mschucreate