[Patches] [ python-Patches-430181 ] Make httplib work with picky servers
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 07 Jun 2001 12:47:00 -0700
Patches item #430181, was updated on 2001-06-04 19:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430181&group_id=5470
Category: library
Group: 2.0.1 bugfix
Status: Open
Resolution: None
Priority: 5
Submitted By: Leonard Samuelson (lenski)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make httplib work with picky servers
Initial Comment:
Python2.0: httplib.py: httplib: HTTPconnection
Header processing: (putheader, putrequest, and
endheaders) methods transmit each HTTP header
line using a separate socket send invocation.
Before this change, My Linksys Etherfast Cable/DSL
router (Linksys BEFSR41, firmware v 1.22,
March 31 2000) rejected the request becuase the
entire HTTP header block is not contained in a
single TCP packet.
Clearly, the router is engaging in a noncompliant
optimization! This patch is not required to allow
httplib to work with real servers, making it
completely optional.
The patch I am submitting with this note causes
httplib to work with the router. It is intended
mostly as a model; a developer with greater
familiarity with the library might have a better
approach.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-06-07 12:47
Message:
Logged In: YES
user_id=21627
I recommend to reject this patch. Not only is the router
broken, but it appears that the operating system is broken
also; I think it legally could, and probably should,
combine small write requests to a TCP socket that occur
shortly after each other into a single IP packet.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430181&group_id=5470