tools/hexnet: doesn’t exit when the connection gets closed by remote peer #65
Labels
No Label
Bug
Build Problems
Discussion
Distribution
Enhancement
Far Future
Fix Later
TODO
WONTFIX
Workflow
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
#66 tools/hexnet: Unit test??
BodgeMaster/FOSS-VG
Reference: BodgeMaster/FOSS-VG#65
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
only applies to TCP mode
The program will just hang there.
I suspect it’s because of the thread that deals with stdin.
tools/hexnet: TCP listen mode doesn’t exit when the connection gets closedto tools/hexnet: doesn’t exit when the connection gets closed by remote peerApparently, sockpp sockets aren’t thread safe. This may or may not be the cause of this issue.
I’m digging into this now.
Apparently, nobody ever bothered (aka I forgot) to check if the connection was still there before attempting to read from / write to it. Hexnet exits abnormally in this situation because it receives a SIGPIPE.
I forgot to write down: Adding a read timeout apparently prevents the thing from running completely. Maybe, this is due to the way the timeout is added?