[Libwebsockets] HTTP Client GET requests not closed

Silas Parker skyhisi+libwebsockets at gmail.com
Tue Jan 31 15:31:06 CET 2017


I'm trying to use libwebsockets for doing some HTTP GETs from within an

I can't seem to close down the socket without closing the whole context.

If I return 0 from LWS_CALLBACK_COMPLETED_CLIENT_HTTP then the connection
isn't closed, and if I return -1 it goes into a busy loop for 20 seconds
before it finally closes.

Is it possible to cleanly close a HTTP GET connection down without closing
the context ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20170131/0dcfe434/attachment.html>

More information about the Libwebsockets mailing list