mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix SO_ACCEPTCONN option for unix sockets.
SO_ACCEPTCONN returns true for TCP sockets which are in a listening state. Added this socket option support for unix sockets. PiperOrigin-RevId: 577008617
This commit is contained in:
committed by
gVisor bot
parent
b445e3ca8e
commit
aa02c6fa15
@@ -645,3 +645,7 @@ func (e *connectionedEndpoint) EventUnregister(we *waiter.Entry) {
|
||||
fdnotifier.UpdateFD(bsFD.NotificationFD())
|
||||
}
|
||||
}
|
||||
|
||||
func (e *connectionedEndpoint) GetAcceptConn() bool {
|
||||
return e.Listening()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user