ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.48k stars 2.43k forks source link

Wait for the second copy error #861

Closed costinm closed 1 year ago

costinm commented 1 year ago

If the method returns before the second direction is done, the socket may be closed or the error ignored. Typically not a problem, in most cases when a direction is closed the other is also done, but for some protocols it may matter, and it seems the correct way to handle.