trac #39: allow fd 0 for connection

Reported (with fix) by Martijn The http://libwebsockets.org/trac/ticket/39

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-09-18 12:59:33 +08:00
parent 578a24df3d
commit 512c246338

View file

@ -113,7 +113,7 @@ insert_wsi_socket_into_fds(struct libwebsocket_context *context,
}
assert(wsi);
assert(wsi->sock);
assert(wsi->sock >= 0);
lwsl_info("insert_wsi_socket_into_fds: wsi=%p, sock=%d, fds pos=%d\n",
wsi, wsi->sock, context->fds_count);