- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestBuffConnReadTimeout (0.59 seconds)
-
internal/deadlineconn/deadlineconn_test.go
package deadlineconn import ( "bufio" "fmt" "io" "net" "sync" "testing" "time" ) // Test deadlineconn handles read timeout properly by reading two messages beyond deadline. func TestBuffConnReadTimeout(t *testing.T) { l, err := net.Listen("tcp", "localhost:0") if err != nil { t.Fatalf("unable to create listener. %v", err) } defer l.Close() serverAddr := l.Addr().String()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 17:15:17 GMT 2024 - 4.8K bytes - Click Count (0)