触发“通过对等方重置连接” [英] Triggering 'connection reset by peer'

查看:138
本文介绍了触发“通过对等方重置连接”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试在发生由对等方重置连接错误时,我们的应用(嵌入式ftp服务器)发生的日志记录。 这篇文章很好地解释了错误的来源,但并没有真正解释如何导致一。有人知道一种方法来触发TCP连接的这个错误吗? tcpkill 似乎很好地完成了这项工作。


I would like to test the logging that happens in our app (an embedded ftp server) when a 'connection reset by peer' error occurs. This post explains the source of the error pretty well, but doesn't really explain how to cause one. Does anybody know a way to trigger this error for a TCP connection?

解决方案

tcpkill seems to do the job well.

这篇关于触发“通过对等方重置连接”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆