net
net copied to clipboard
[mirror] Go supplementary network libraries
This commit adds a "max_active" query param to net/trace's `/debug/requests` HTTP handler. When provided, the parameter configures the maximum number of active traces to show. This allows users to override...
The default HTTP2 transport `ClientConnPool` uses `ClientConn.closeIfIdle()`. Exporting the method so that a user-provided `ClientConnPool` can use that as well.
http2 transport allows stub of `ClientConnPool`, but both `clientConnPoolIdleCloser` interface and its `closeIdleConnections()` method are private. This makes the stubbed `ClientConnPool` implementation not able to implement `closeIdleConnections()`. As a result,...
This change enables HTTP/2 CLIENTs to receive and send unknown frames. The basic idea is to add unknown frame handling in request.Body and response.Body. If the APIs look OK, I...
Contains a fix for CVE-2022-32149, although the code in x/net does not appear to be affected itself.
Add websocket.NewClient2 to get the http.Response returned by the server, so as to have better countermeasures when there is a handshake error. Add the websocket.Conn.FrameDataLength method to return the data...
Changes generated in x/text for Unicode 15.1.0; this is complementary to CL 556397 and CL 565155. Updates golang/go#65141
Adds to the transport configuration the capability to configure the maximum flow control values instead of using default ones. For applications that use a lot of client connections, being able...
The websocket package is retired, as explained in https://github.com/golang/go/issues/2134#issuecomment-583785742, and its neglect has been a topic of discussion since at least 2016 (see https://github.com/golang/go/issues/18152). However, to this day, the documentation...