17 May 2019
Views: 66
func connCheckForShutdown(c net.Conn) { n, err := c.Read(make([]byte, 10))
fmt.Println(n) if err != io.EOF { log.Fatal("conn closed", err) }}
Share
Advertisement