Share

No Title

Public

17 May 2019

Views: 2

func connCheckForShutdown(c net.Conn) {
n, err := c.Read(make([]byte, 10))

fmt.Println(n)
if err != io.EOF {
log.Fatal("conn closed", err)
}
}

Advertisement

Disable Third Party Ads