handle HUP on any mode socket
authorGraham Newton <gnewton@peavey-eu.com>
Mon, 4 Nov 2013 01:47:06 +0000 (09:47 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 4 Nov 2013 01:47:06 +0000 (09:47 +0800)
commitb1aa1d3389416f44b1aab9b9255e4737fe91d5ec
treec91ee3af234836f932f9425cc5b5473d61633a6c
parent9b8a29f8ca93b156fe2c760d3940e7ae1ad458ec
handle HUP on any mode socket

I am using libwebsockets on Windows 7 in external poll mode.
I am finding that if I present a socket fd on a normal HTTP connection
(LWS_CONNMODE_HTTP_SERVING:) to libwebsocket_service_fd with just a HUP
event, the event doesn't get handled but revents gets cleared indicating
that the event has been handled.  Should it be handled in the same way
as LWS_CONNMODE_WS_SERVING?

(Modified by AG to apply to all sockets)

Signed-off-by: Andy Green <andy.green@linaro.org>
Signed-off-by: Graham Newton <gnewton@peavey-eu.com>
lib/libwebsockets.c