In the implementation of the Go netpoller, `netpollBreak()` attempts to 
write 1 byte to `netpollBreakWr`, whereas `netpoll()` reads up to 16 bytes 
from `netpollBreakRd`, why 16 bytes rather than 1 byte?

write up to 1 
byte: 
https://cs.opensource.google/go/go/+/refs/tags/go1.20.5:src/runtime/netpoll_epoll.go;l=77;drc=c7cc2b94c63af610a29b1b48cfbfb87cb8abf05b

read up to 16 
bytes: 
https://cs.opensource.google/go/go/+/refs/tags/go1.20.5:src/runtime/netpoll_epoll.go;l=146;drc=c7cc2b94c63af610a29b1b48cfbfb87cb8abf05b

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/779ddbf5-2c26-4f26-9c24-123eb238b72bn%40googlegroups.com.

Reply via email to