lua-users home
lua-l archive

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


On Oct 3, 2010, at 8:04 PM, Norbert Kiesel wrote:

>> At first glance, luasocket's http module doesn't support persistent connection.
>> 
>> http.lua:215 adjustheaders(reqt): ["connection"] = "close, TE",
>> http.lua:327 trequest(reqt): h:close()
> 
> Yeah, but even after commenting out the h:close() the socket is  still
> closed somehow.

By default, the request is asking for the connection to be closed by the server (http.lua:215), so perhaps this is not unexpected, no?