wwivbbs / wwiv

WWIV BBS Software v5
http://www.wwivbbs.org
Other
185 stars 71 forks source link

add network* timeout #923

Open granitepenguin opened 7 years ago

granitepenguin commented 7 years ago

When running networkb via WFC and hitting a destination that's not responding (mystic, in this case), there needs to be some kind of a timeout so it doesn't hang WFC and stop processing of other networks. I saw this with networkb, but probably needed for all network* binaries.

wwiv commented 7 years ago

networkb is the only one that opens sockets.

wwiv commented 7 years ago

http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2008-06/msg00108.html has some details, looks like *nix has a big default timeout where windows has a short one.

wwiv commented 7 years ago

Also https://vichargrave.github.io/articles/2014-03/tcp-ip-sockets-with-time-out-capabilties

wwiv commented 4 years ago

https://www.codeproject.com/Tips/168704/How-to-set-a-socket-connection-timeout