David Fifield
ee2fb42d33
Immediately and unconditionally grant new SOCKS connections.
2020-04-23 14:00:03 -06:00
David Fifield
a2292ce35b
Make timeout constants into time.Duration values.
...
This slightly changes some log messages.
2020-01-31 00:08:50 -07:00
David Fifield
dfb83c6606
Allow handling multiple SOCKS connections simultaneously.
...
Close the SOCKS connection in the same function that opens it.
2020-01-30 10:18:23 -07:00
David Fifield
57d4b0b5bd
Use lowercase variable names in copyLoop.
2020-01-28 03:04:33 -07:00
David Fifield
bc5498cb4b
Fix the order of arguments of client copyLoop to match the call.
...
The call was
copyLoop(socks, snowflake)
but the function signature was
func copyLoop(WebRTC, SOCKS io.ReadWriter) {
The mistake was mostly harmless, because both arguments were treated the
same, except that error logs would have reported the wrong direction.
2020-01-28 03:04:14 -07:00
David Fifield
b4f4b29a03
Stop counting handlers before terminating.
...
The requirement to do so is obsolete and has already been removed from
other pluggable transports.
https://bugs.torproject.org/32046
2019-10-11 16:50:25 -06:00
Shane Howearth
b26c7a7a73
Handle generated errors in client
2019-10-08 10:25:44 -04:00
Shane Howearth
3ec9dd19fa
Handle generated errors in server-webrtc
2019-10-08 10:12:36 -04:00
Arlo Breault
cce7ee64a7
Start refactoring out a client and library
2018-11-20 22:38:02 -05:00