David Fifield
5ff75e1034
Remove erroneous logging around pt.*Error calls.
...
These functions are called for their side effect of sending a PT error
message on stdout; they also return a representation of the error
message as an error object for the caller to use if it wishes. These
functions *always* return a non-nil error object; it is not something to
be logged, any more than the return value of errors.New is.
The mistaken logging was added in
https://bugs.torproject.org/31794
b26c7a7a73
3ec9dd19fa
ed3d42e1ec
2020-01-20 23:57:31 -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
3ec9dd19fa
Handle generated errors in server-webrtc
2019-10-08 10:12:36 -04:00
Arlo Breault
d7676d2b9e
Stop using OnIceComplete in server-webrtc
...
Similar to c28c8ca
for proxy-goc
2019-05-21 14:34:40 -04:00
Arlo Breault
622005c79e
Remove copy/paste signalling
2019-05-08 11:21:56 -04:00
David Fifield
019e2cea23
Update server shutdown procedure.
...
Ignore SIGINT, honor TOR_PT_EXIT_ON_STDIN_CLOSE.
2018-03-21 00:53:31 -07:00
Arlo Breault
1114acbcb4
Add synchronization around destroying DataChannels and PeerConnections
...
From https://trac.torproject.org/projects/tor/ticket/21312#comment:33
2018-03-20 15:08:36 -04:00
David Fifield
c834c76fc5
Call explicit frees in server-webrtc.
...
https://bugs.torproject.org/21312
Cf. corresponding change for proxy-go:
https://gitweb.torproject.org/pluggable-transports/snowflake.git/commit/?id=ff8f3851082e8f7f8b4c8b99b161be35020aeb67
2018-03-14 00:13:02 -04:00
David Fifield
9ebde38b3f
Add a -log option to server-webrtc.
2017-07-16 15:02:41 -07:00
David Fifield
86a244c39e
Make client and server-webrtc log in UTC.
2017-07-16 14:58:34 -07:00
Arlo Breault
5cd2a226aa
Enable tls websockets on the server
...
* Code lifted from meek-server
2016-12-19 16:07:02 -08:00
David Fifield
c4cfc7f8ba
Move server to server-webrtc.
...
To make room for the WebSocket server we're actually going to use as a
primary server. Move server-webrtc docs to server-webrtc/README.md.
2016-03-26 15:24:44 -07:00