[Mono-devel-list] HttpSoapWebServiceHandler.SerializeResponse closes the HttpResponse
Gonzalo Paniagua Javier
gonzalo at ximian.com
Sun Jun 5 14:15:41 EDT 2005
On Sun, 2005-06-05 at 20:30 +0300, Konstantin Triger wrote:
> How closing the connection may help when only a part of the data arrived?
> Konstantin Triger
> Gonzalo Paniagua Javier wrote:
> >On Sun, 2005-06-05 at 17:12 +0300, Konstantin Triger wrote:
> >>Hi Lluis,
> >>The HttpSoapWebServiceHandler.SerializeResponse currently closes the
> >>response when finished. What makes the "keep-alive" to not work and
> >>actually a new socket is opened for each request.
> >>Is this done on purpose?
> >I recall something related to a POST being sent with no Content-Length
> >or 'chunked' encoding being the cause of not reusing the connection.
If the server does not know the length and you're not sending it
'chunked', the server cannot reuse the connection.
ServicePoint takes care of reusing the connection when possible and
closing the HttpResponse does not mean that the socket will be closed
right away unless we realize the server did close it.
More information about the Mono-devel-list