mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Conn Read/Write operations will block while search completes
This commit is contained in:
parent
ea8948f378
commit
6e528799e9
2 changed files with 20 additions and 5 deletions
|
@ -216,7 +216,7 @@ func (tun *TunAdapter) connReader(conn *yggdrasil.Conn) error {
|
|||
for {
|
||||
n, err := conn.Read(b)
|
||||
if err != nil {
|
||||
//tun.log.Errorln(conn.String(), "TUN/TAP conn read error:", err)
|
||||
tun.log.Errorln(conn.String(), "TUN/TAP conn read error:", err)
|
||||
continue
|
||||
}
|
||||
if n == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue