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

accpet io/timeout err  #15

@Jamlee

Description

@Jamlee

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)
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions