Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTransportPersistConnReadLoopEOF (0.45 sec)

  1. src/net/http/transport_internal_test.go

    	"crypto/tls"
    	"errors"
    	"io"
    	"net"
    	"net/http/internal/testcert"
    	"strings"
    	"testing"
    )
    
    // Issue 15446: incorrect wrapping of errors when server closes an idle connection.
    func TestTransportPersistConnReadLoopEOF(t *testing.T) {
    	ln := newLocalListener(t)
    	defer ln.Close()
    
    	connc := make(chan net.Conn, 1)
    	go func() {
    		defer close(connc)
    		c, err := ln.Accept()
    		if err != nil {
    			t.Error(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top