Open hjpotter92 opened 4 years ago
Is there a difference in the state of socket connection? I did not receive a client closed the connection event when I did Ctrl-D.
Ctrl+D sends EOF to terminal and should result in a clean connection close. Websocat should sent a close frame. It is as if information to be sent were read from file and it reached the end of the file.
Ctrl+C simply terminates websocat and socket is closed without special control frame, probably just a FIN
TCP packet.
-B 120000000
Note that data processing in websocat is not zero-copy. Expect some slowdown when dealing with gigant messages.
The first time, I did a Ctrl-D keypress, with exit code of
0
. The 2nd time, I did a Ctrl-C keypress, with same exit status.Is there a difference in the state of socket connection? I did not receive a client closed the connection event when I did
Ctrl-D
.