This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Stanley Brown wrote:I'm not looking for abnormal connection terminations. For now I'm only concerned with getting non-blocking nio sockets to behave like Sun's implementation in that a closing socket adds a OP_READ event to the interested selector and further reads will result in -1 bytes being available.
Found another NIO sockets issue. For some reason an OP_READ event is never issued when a non-blocking socket has concluded. This is a problem because, from my understanding, the only way to know you've
Reads are usless for detecting connections that have not terminated "normally". Doing a write is the only reliable method for determining that a connection is still "open".
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |