[luci] httpclient - missing sock:close() ?
Jo-Philipp Wich
xm at subsignal.org
Thu Feb 6 14:06:03 CET 2014
Hi,
its not as easy as calling close() in request_raw() because it actually
returns a source function to read the body data sent by the server from
the yet open socket.
A proper solution would be closing the socket on EOF in chunksource(),
linesource() and blocksource().
I attached a patch you can try to see if it solves your issue.
~ Jow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: close-on-eof.patch
Type: text/x-diff
Size: 1496 bytes
Desc: not available
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20140206/707bf1c0/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20140206/707bf1c0/attachment-0001.pgp>
More information about the luci
mailing list