Delay socket receive/send until first read/flush (#34458)
* Delay socket receive/send until first read/flush - Today when the socket connection is accepted or connection, we implicitly start reading and writing from the socket. This can prevent certain scenarios where users want to get access to the raw socket before any operations happen (like in hand off scenarios). This change defers the reads and writes until read or flush is called on the transport's IDuplexPipe. - Added test to make sure we can read from the socket via IConnectionocket feature. - Added DuplicateAndClose test
显示
- src/Servers/Kestrel/Transport.Sockets/src/Client/SocketConnectionFactory.cs 0 个添加, 1 个删除...l/Transport.Sockets/src/Client/SocketConnectionFactory.cs
- src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.DuplexPipe.cs 25 个添加, 0 个删除...sport.Sockets/src/Internal/SocketConnection.DuplexPipe.cs
- src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.PipeReader.cs 77 个添加, 0 个删除...sport.Sockets/src/Internal/SocketConnection.PipeReader.cs
- src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.PipeWriter.cs 68 个添加, 0 个删除...sport.Sockets/src/Internal/SocketConnection.PipeWriter.cs
- src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs 17 个添加, 12 个删除...estrel/Transport.Sockets/src/Internal/SocketConnection.cs
- src/Servers/Kestrel/Transport.Sockets/src/SocketConnectionListener.cs 0 个添加, 2 个删除...Kestrel/Transport.Sockets/src/SocketConnectionListener.cs
- src/Servers/Kestrel/test/Sockets.FunctionalTests/SocketTranspotTests.cs 160 个添加, 0 个删除...strel/test/Sockets.FunctionalTests/SocketTranspotTests.cs
加载中
想要评论请 注册 或 登录