[Zope-dev] Zope closes connection if the client closes the write-end of connection

Lennart Regebro regebro at gmail.com
Fri Oct 16 16:36:28 EDT 2009


>From the HTTP/1.1 spec:

  Servers SHOULD NOT close a connection in the
  middle of transmitting a response, unless a network or client failure
  is suspected.

But on the other hand:

  When a client or server wishes to time-out it SHOULD issue a graceful
  close on the transport connection. Clients and servers SHOULD both
  constantly watch for the other side of the transport close, and
  respond to it as appropriate. If a client or server does not detect
  the other side's close promptly it could cause unnecessary resource
  drain on the network.

So HTTP seems to contradict itself, typically But from looking at
other peoples responses, most interpret the specification that the
connection should immediately be closed, so the Zope does the right
thing there, and Varnish should be changed. This is apparently the
generally accepted interpretation.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64


More information about the Zope-Dev mailing list