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

Trac trac at libwebsockets.org
Mon Jan 26 15:53:46 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 agreen):

 All of the Windows stuff is contributed.

 In unix the sockets use file descriptors and are not opaque pointers like
 that.  The array lookup scheme is really efficient then.

 It should be that all code related to that is in lws-plat-*.c, so changing
 it there only for Windows shouldn't be that tough if you want to look at
 it.

 If you go back far enough in the git history, you'll find a hashtable-
 based implementation I originally wrote before the (contributed) array
 scheme was introduced.

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



More information about the Libwebsockets mailing list