David Fifield
01e28aa460
Rewrite websocketconn with synchronous pipes.
...
Makes the following changes:
* permits concurrent Read/Write/Close
* converts certain CloseErrors into io.EOF
https://bugs.torproject.org/33144
2020-02-04 15:53:15 -07:00
David Fifield
5708a1d57b
websocketconn tests.
...
https://bugs.torproject.org/33144
2020-02-04 15:53:15 -07:00
David Fifield
20ac2029fd
Have websocketconn.New return a pointer.
...
This makes the return type satisfy the io.ReadWriteCloser interface
directly.
2020-01-30 10:18:23 -07:00
David Fifield
e47dd5e2b4
Remove some redundancy in websocketconn naming.
...
Rename websocketconn.WebSocketConn to websocketconn.Conn, and
websocketconn.NewWebSocketConn to websocketconn.New
Following the guidelines at
https://blog.golang.org/package-names#TOC_3%2e
2020-01-30 10:18:23 -07:00
Arlo Breault
7092b2cb2c
Revert abstracting copyloop
2019-11-21 19:33:39 -05:00
Arlo Breault
30b5ef8a9e
Use gorilla websocket in proxy-go too
...
Trac: 32465
2019-11-20 19:33:28 -05:00