libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Connection: close in response


From: Robert Varga
Subject: [libmicrohttpd] Connection: close in response
Date: Tue, 21 Jun 2011 15:14:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110502 Lightning/1.0b2 Thunderbird/3.1.10

Hi,

it seems that, contrary to documentation of MHD_OPTION_CONNECTION_LIMIT,
libmicrohttpd 0.9.11 does not close the connection when handler inserts
a Connection: close header into the response. Looking at the code, it
seems that only headers sent by the client are examined.

The attached program still allows request pipelining, unless an
additional call to:

MHD_set_connection_value(connection, MHD_HEADER_KIND,
MHD_HTTP_HEADER_CONNECTION, "close");

is made -- which makes the connection shutdown as expected.

Bye,
Robert

Attachment: mhd_close.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]