]> sourceware.org Git - newlib-cygwin.git/commit
Fix two bugs in the limit of large numbers of sockets:
authorErik M. Bray <erik.m.bray@gmail.com>
Tue, 7 Nov 2017 13:44:49 +0000 (14:44 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 7 Nov 2017 15:08:14 +0000 (16:08 +0100)
commit1c50e0d1abd5cc790e72572af6fd6b03f7d1c594
tree0abf9704bba55cd39a774f99c1a3add5a5ce77f6
parent1f42dc2bcf58d3b8629eb13d53de3f69fc314b47
Fix two bugs in the limit of large numbers of sockets:

* Fix the maximum number of sockets allowed in the session to 2048,
  instead of making it relative to sizeof(wsa_event).

  The original choice of 2048 was in order to fit the wsa_events array
  in the .cygwin_dll_common shared section, but there is still enough
  room to grow there to have 2048 sockets on 64-bit as well.

* Return an error and set errno=ENOBUF if a socket can't be created
  due to this limit being reached.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler_socket.cc
This page took 0.028599 seconds and 5 git commands to generate.