Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

accpet io/timeout err #15

Open
Jamlee opened this issue Mar 26, 2019 · 0 comments
Open

accpet io/timeout err #15

Jamlee opened this issue Mar 26, 2019 · 0 comments

Comments

@Jamlee
Copy link

Jamlee commented Mar 26, 2019

Hi, it is alway say 'accept tcp [::]:9001: i/o timeout', it may be need to check the error type

subnet/subnet/server.go

Lines 107 to 109 in e330ba9

if !s.isShuttingDown {
log.Printf("Listener err: %s\n", err.Error())
}

i try to give solution like below:

              if err != nil {
			if !s.isShuttingDown {
				if !err.(net.Error).Timeout() {
					log.Infof("Listener err: %s", err.Error())
				}
			}
		} else {
			s.handleClient(conn)
		}
@Jamlee Jamlee changed the title io/timeout err happen to me accpet io/timeout err Mar 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant