forked from n42n/n3n
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more careful with selected file descriptors
Some bug reports that edges using TCP mode are getting occasional errors: *** bit out of range 0 - FD_SETSIZE on fd_set ***: terminated We were not accounting for the fact that the TCP supernode socket file descriptor is set to "-1" when it is disconnected and invalid. Avoid "-1" file handles when adding to or checking signals for fd_set contents. This code path will hopefully also get smoothed out when the mainloop conversion is added in - as it will have a systematic way to add/check file descriptors. (Addresses n42n#28)
- Loading branch information
1 parent
555066f
commit 8c53722
Showing
1 changed file
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters