David Fifield
8cadcaee70
Benchmark for websocketconn.Conn read/write.
...
Current output:
$ go test -bench=BenchmarkReadWrite -benchmem -benchtime=5s
BenchmarkReadWrite/c←s_150-4 451840 13904 ns/op 10.79 MB/s 34954 B/op 4 allocs/op
BenchmarkReadWrite/s←c_150-4 452560 16134 ns/op 9.30 MB/s 36378 B/op 4 allocs/op
BenchmarkReadWrite/c←s_3000-4 202950 40846 ns/op 73.45 MB/s 69833 B/op 8 allocs/op
BenchmarkReadWrite/s←c_3000-4 189262 37930 ns/op 79.09 MB/s 69768 B/op 8 allocs/op
2022-11-16 13:48:34 -07:00
trinity-1686a
5ef5142bb0
format using go-1.19
2022-10-09 21:15:50 +02:00
David Fifield
380b133155
Close internal Pipes in websocketconn.Conn Close.
...
Unless something externally called Write after Close, the
writeLoop(ws, pr2) goroutine would run forever, because nothing would
ever close pw2/pr2.
https://bugs.torproject.org/33367#comment:4
2020-02-18 14:10:47 -07:00
David Fifield
5708a1d57b
websocketconn tests.
...
https://bugs.torproject.org/33144
2020-02-04 15:53:15 -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