You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently syscall.RawConn supports notifications for read ready and write ready.
One thing we've found is we'd like to be notified when the fd is closed.
This helps prevent cases like io.Copy(w, r) from blocking forever when w is closed but r has no content to read OR when w is blocked for write but r is closed.
So far we've used used the RawConn.Control function to setup epoll notify when on hangup.
It would be nice to have the interface (or an additional interface) support this and implementations can use the runtime poller.
The text was updated successfully, but these errors were encountered:
Proposal Details
Currently
syscall.RawConn
supports notifications for read ready and write ready.One thing we've found is we'd like to be notified when the fd is closed.
This helps prevent cases like
io.Copy(w, r)
from blocking forever whenw
is closed butr
has no content to read OR whenw
is blocked for write butr
is closed.So far we've used used the
RawConn.Control
function to setup epoll notify when on hangup.It would be nice to have the interface (or an additional interface) support this and implementations can use the runtime poller.
The text was updated successfully, but these errors were encountered: