| Commit | Date | |
|---|---|---|
|
[r5506]
by
david_costanzo
Refactoring: Stop passing a HWND as parameters in the network API. |
2020-12-09 04:43:57 | Tree |
| 2020-12-09 04:09:23 | Tree | |
|
[r5504]
by
david_costanzo
Minor improvements: |
2020-12-09 04:04:38 | Tree |
|
[r5503]
by
david_costanzo
Fix a problem where if a second connection was created to a NETACCEPTON server while it was already connected, then winsock would not raise any more FD_ACCEPT events and the server wouldn't be able to process any further connections. The fix is to a set flag when NETACCEPTON is too busy to accept a second connection, then to later execute accept() once the first connection is closed. |
2020-12-09 04:00:53 | Tree |
|
[r5502]
by
david_costanzo
Don't immediately return from AsyncSelect callback on error. The important thing is to process the FD_CLOSE event even when it comes from a socket reset. Otherwise a NETACCEPTON server can get into a bad state where it no longer accepts new incoming connections. |
2020-12-09 03:27:11 | Tree |
|
[r5501]
by
david_costanzo
Remove some "if (IsEnabled())" calls before calling Disable(). |
2020-12-08 20:23:53 | Tree |
|
[r5500]
by
david_costanzo
Add a comment to explain why the call to connect() is expected to fail (with WSAEWOULDBLOCK) |
2020-12-08 20:12:22 | Tree |
| 2020-12-08 19:52:49 | Tree | |
|
[r5498]
by
david_costanzo
Fix Bug #182; NETACCEPTON can now accept multiple connections (in serial) The heart of the fix is to keep two distinct sockets for server connections, the listen socket and the connection (accept) socket. Before, the code only kept one socket and the listen socket was overwritten by the connection socket when accept() was called. By keeping track of the two sockets separately, NETACCEPTOFF can reliably cancel the listen(), which makes it possible to re-listen on the same port later. An ancilliary change is to close the connection socket when the client initiates a half-close. This was required to not leak the connection socket by overwriting it when a new accept() call was made. The logic still only supports one concurrent connection to the server, so multiple connections must be made in serial. |
2020-12-08 19:27:16 | Tree |
| 2020-12-08 04:47:56 | Tree |