Netcat Triggers Connection Reset Error When Program Exits

寵の児 提交于 2019-12-11 09:47:15

问题


I'm using netcat -e $prog, which is fine, but whenever $prog exits, netcat hangs up on the original connection. Any thoughts on how to make it disconnect with a clean FIN-ACK? Or why it's not in the first place?

$ nc localhost 2000

*random data that should just cause it to exit cleanly*

read(net): Connection reset by peer

$

来源:https://stackoverflow.com/questions/34687738/netcat-triggers-connection-reset-error-when-program-exits

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!