]> Git Repo - VerusCoin.git/commit
netbase: Make SOCKS5 negotiation interruptible
authorWladimir J. van der Laan <[email protected]>
Mon, 8 Sep 2014 11:49:56 +0000 (13:49 +0200)
committerWladimir J. van der Laan <[email protected]>
Wed, 10 Sep 2014 09:33:13 +0000 (11:33 +0200)
commit6050ab685553c7312ef105d2c4a5230c3fcf4002
treeff96280109f4200733a4bbfc81278cad4ff5367f
parent6a8d15cc16875a2dce3d944b46eb21b3f72bb33b
netbase: Make SOCKS5 negotiation interruptible

Avoids that SOCKS5 negotiation will hold up the shutdown process.

- Sockets can stay in non-blocking mode, no need to switch it on/off
  anymore
- Adds a timeout (20 seconds) on SOCK5 negotiation. This should be
  enough for even Tor to get a connection to a hidden service, and
  avoids blocking the opencon thread indefinitely on a hanging proxy.

Fixes #2954.
src/net.cpp
src/netbase.cpp
This page took 0.021103 seconds and 4 git commands to generate.