[Libwebsockets] [libwebsockets] #60: Crash on Windows because of getdtablesize()

Trac trac at libwebsockets.org
Mon Jan 26 15:45:45 CET 2015


#60: Crash on Windows because of getdtablesize()
------------------------------------+-----------------
  Reporter:  JonMerel               |      Owner:
      Type:  defect                 |     Status:  new
  Priority:  blocker                |  Milestone:
 Component:  libwebsockets library  |    Version:
Resolution:                         |   Keywords:
------------------------------------+-----------------

Comment (by michaelb):

 We are seeing this issue on Windows 7 & 8, e.g. libwebsocket: (level: 1)
 Socket fd 44980 is too high (30000). It is pretty easy to repro in the
 first few sockets opened on a client so maybe there has been an underlying
 change in windows that is exposing this?

 Looking at the code it seems to be written assuming small number fds, eg
 context->lws_lookup is an array rather than, say, a map it would need to
 be. Is anyone looking at a fix for this?

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/60#comment:2>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list