netty5/transport-native-unix-commo.../src/main/java/io/netty/channel/unix/tests
Norman Maurer 030318e53c
Read until all data is consumed when EOF is detected even if readPend… (#7961)
* Read until all data is consumed when EOF is detected even if readPending is false and auto-read is disabled.

Motivation:

We should better always notify the user of EOF even if the user did not request any data as otherwise we may never be notified when the remote peer closes the connection. This should be ok as the amount of extra data we may read and so fire through the pipeline is limited by SO_RECVBUF.

Modifications:

- Always drain the socket when EOF is detected.
- Add testcase

Result:

No risk for the user to be not notified of EOF.
2018-05-24 20:29:29 +02:00
..
DetectPeerCloseWithoutReadTest.java Read until all data is consumed when EOF is detected even if readPend… (#7961) 2018-05-24 20:29:29 +02:00
SocketTest.java Ensure setting / getting the traffic class on an ipv4 only system works when using the native transport. 2017-10-24 09:03:28 +02:00
UnixTestUtils.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
package-info.java New native transport for kqueue 2017-05-03 09:53:22 -07:00