Program panicked: Unhandled error
aldwnesx opened this issue Β· comments
π€― Program panicked: Unhandled error at test.emojic:13:11: Broken pipe
Aborted (core dumped)
` Here weβve an example of a minimal echo-server that listens on port 8728. The server simply sends
back a copy of the data it received.
π¦ sockets π
π Simple echo server listening on port 8728
π π
πΊππ 8728βοΈ β‘οΈ server
π π π
πΊ π serverβοΈ β‘οΈ clientSocket
π π π
π data π clientSocket 50βοΈ π
π Weβve read 50 bytes and send them back
πΊ π¬ clientSocket dataβοΈ
π
π
ββοΈ error ππ
π
π
π
Not sure what exactly the error means, any help would be appreciated
Broken pipe is a TCP error that you did not handle on line 13 by using πΊ instead of performing proper error handling. Please do not use the issue tracker for debugging help.