update selector
This commit is contained in:
1 parent
7136710673
commit
99adf4bb06
5 files changed
+16
-19
No files matched your search
@@ -85,6 +85,7 @@ func (s *service) Serve() error {
|
||||
for {
|
||||
conn, e := s.listener.Accept()
|
||||
if e != nil {
|
||||
// TODO: remove Temporary checking
|
||||
if ne, ok := e.(net.Error); ok && ne.Temporary() {
|
||||
if tempDelay == 0 {
|
||||
tempDelay = 1 * time.Second
|
||||
|
||||
Reference in new issue
Block a user