9seconds
ee524abdb5
Remove redundant copyBufferPool from relay
преди 2 месеца
9seconds
3b03c4a90a
More idioms related to go 1.26
преди 2 месеца
9seconds
074c4017f5
Formatting by gofumpt
преди 2 месеца
9seconds
ecba88d2e3
Update to the latest golangci-lint
преди 2 месеца
9seconds
36dad5a2f6
Update golangci-lint
преди 3 години
9seconds
5282ca26f3
Update golangci-lint to 1.44.2
преди 4 години
9seconds
93bed24a0b
Remove all cleverness that broke uploads
преди 4 години
9seconds
e7416bc04d
Fix lint issues
преди 4 години
9seconds
33e0509c5a
Optimize for a fast flush
преди 4 години
9seconds
ffad717829
Use CloseRead and CloseWrites
преди 4 години
9seconds
7b1f86b75d
wip
преди 4 години
9seconds
a5e59d9ef7
Add syncPair
преди 4 години
9seconds
ce8163d1b7
Minor simplification
преди 4 години
9seconds
66f4d967e7
Get rid of buffersize everywhere
преди 4 години
9seconds
ca5800cf60
Simplify tcp relay time randomization
преди 4 години
9seconds
456ed5b051
Change algorithm of TCP relaying
преди 4 години
9seconds
16f9ec690b
Fix race condition in closing a relay
This commit fixes a situration when relay can be reset before all
waiting goroutines are finished. For example, we terminate processing
based on some event: socket error etc. So, error happens and context is
cancelled. After that a main relay goroutine starts to wait. Meanwhile a
second goroutine reaches deferred function and set wg to done. It means
that main goroutine can continue.
In this case this is really possible that we can start resetting before
transmit goroutine really exits.
A correct solution is to always do wg.Done() as a first deferred thing
on entering to a function. In that case we do not need reordering and so
on.
преди 5 години
9seconds
585ebfeb50
Update golanci-lint
преди 5 години
9seconds
24fdec6694
Move testlib to internal
преди 5 години
9seconds
03d98ee256
Add relay test for timeout
преди 5 години
9seconds
dc28677086
Fix lint
преди 5 години
9seconds
54f4b397b6
Add tests for relay conn
преди 5 години
9seconds
3cacd74e12
Correctly reset relay state
преди 5 години
9seconds
4c3f42e264
Simplify relay
преди 5 години
9seconds
f0efa4697e
Faketls works now
преди 5 години
9seconds
4da2a4f10f
Add comment for relay test
преди 5 години
9seconds
336e825e3a
Add wg to observer
This is to ensure a case when we still can have observer hanging around
преди 5 години
9seconds
b42e51e300
Small improvements
преди 5 години
9seconds
6b1bfe7b17
Add primitive relay tests
преди 5 години
9seconds
e3b7472239
Add test for handshake frame
преди 5 години
9seconds
a3362c7ea4
Proxy is working in a simple mode now
преди 5 години