fix: gvisor panic
This commit is contained in:
parent
e4fb10faf9
commit
ffb49ba4c5
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ func withTCPHandler(handle adapter.TCPHandleFunc) option.Option {
|
||||||
defer r.Complete(false)
|
defer r.Complete(false)
|
||||||
|
|
||||||
err = setSocketOptions(s, ep)
|
err = setSocketOptions(s, ep)
|
||||||
|
if err != nil {
|
||||||
|
r.Complete(true)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
conn := &tcpConn{
|
conn := &tcpConn{
|
||||||
TCPConn: gonet.NewTCPConn(&wq, ep),
|
TCPConn: gonet.NewTCPConn(&wq, ep),
|
||||||
|
|
Loading…
Reference in a new issue