45e759a1fa
The previous use of non-blocking writes could result in corrupt PCAP files if a partial write occurs. Using (*os.File).Write solves this problem by not allowing partial writes. This change does not increase allocations (in one path it actually reduces them), but does add additional copying. PiperOrigin-RevId: 209652974 Change-Id: I4b1cf2eda4cfd7f237a4245aceb7391b3055a66c |
||
---|---|---|
.. | ||
BUILD | ||
blockingpoll_amd64.s | ||
blockingpoll_unsafe.go | ||
blockingpoll_unsafe_amd64.go | ||
errors.go | ||
rawfile_unsafe.go |