Skip to content

Commit

Permalink
rm readTrigger error
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Nov 28, 2023
1 parent 0a1eaea commit 5c572d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions connection_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package netpoll

import (
"log"
"sync"
"sync/atomic"
"syscall"
Expand Down Expand Up @@ -412,8 +413,10 @@ func (c *connection) waitRead(n int) (err error) {
default:
err = <-c.readTrigger
if err != nil {
return err
log.Printf("netpoll: readTrigger get err=%v,status=%d", err, c.status(closing))
//return err
}
continue
}
}
return nil
Expand Down Expand Up @@ -448,7 +451,8 @@ func (c *connection) waitReadWithTimeout(n int) (err error) {
return Exception(ErrReadTimeout, c.remoteAddr.String())
case err = <-c.readTrigger:
if err != nil {
return err
log.Printf("netpoll: readTrigger get err=%v,status=%d", err, c.status(closing))
//return err
}
continue
}
Expand Down

0 comments on commit 5c572d8

Please sign in to comment.