3 ms·
While Network socket in Go are using epolls automatically, file are not. From looking at Badger code for example: fd.ReadAt(buf, offset) would block. See this
by skyde 9y ago
While Network socket in Go are using epolls automatically, file are not.
From looking at Badger code for example: fd.ReadAt(buf, offset) would block.
See this issue:
https://github.com/golang/go/issues/6817 https://github.com/golang/go/issues/6817