connection closed gracefully问题

这个问题让我纠结了我好几天。百度了一下,多数说的像这个类似:

http://blog.youkuaiyun.com/zhongguoren666/article/details/6777402


这个能解决一定的问题,但是还是没有解决我的问题。


相信大家出现这种问题时,是程序中用了多线程吧。Me too!


经过测试,我发现,这个问题出现在多线程中,之前我用的30个线程,改成15个就OK了。


最后发现这个的意思是连接到服务器,但服务器没有响应.


造成这种情况的原因是,服务器同一时间只接受来自一个IP地址15个线程的访问,如果超过了15个线程,可能就不再回应,返回错误信息就会是这样的了。可以再停止群发一段时间后再试着群发,就不会出现这种问题。


如果服务端有限制,把线程改小点吧。呵呵!


希望我的这篇文章能对大家有用!

21:40:18 ROOT=D:\TinyPXE\files\ 21:40:18 DHCPd 192.168.29.2:67 started... 21:40:18 TFPTd 192.168.29.2:69 started... 21:40:19 HTTPd:80 started... 21:40:24 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:2A06CAAA 21:40:24 DHCPd:OFFER sent, IP:192.168.29.3, XID:2A06CAAA 21:40:26 DHCPd:REQUEST received, MAC:00-0C-29-06-CA-AA, XID:2A06CAAA 21:40:26 TFTPd:DoReadFile:ipxe.pxe B:1456 T:0 21:40:26 DHCPd:ACK sent, IP:192.168.29.3, XID:2A06CAAA 21:40:30 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:F0369A28 21:40:30 DHCPd:iPXE user-class detected 21:40:31 DHCPd:OFFER sent, IP:192.168.29.4, XID:F0369A28 21:40:32 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:F0369A28 21:40:32 DHCPd:iPXE user-class detected 21:40:32 DHCPd:OFFER sent, IP:192.168.29.5, XID:F0369A28 21:40:35 DHCPd:REQUEST received, MAC:00-0C-29-06-CA-AA, XID:F0369A28 21:40:35 DHCPd:iPXE user-class detected 21:40:35 DHCPd:ACK sent, IP:192.168.29.5, XID:F0369A28 21:40:35 TFTPd:DoReadFile:hds_ipxe3.ipxe B:1432 T:5258 21:40:35 HTTPd:Connect: 192.168.29.5, TID=5596 21:40:35 HTTPd:Client: 192.168.29.5 [GET] /hsds_pxe 21:40:35 HTTPd:Server : Returning /hsds_pxe 21:40:43 HTTPd:Exception: , Connection Closed Gracefully. 21:40:43 HTTPd:DisConnect: TID=5596 21:40:47 HTTPd:Connect: 192.168.29.5, TID=2624 21:40:47 HTTPd:Client: 192.168.29.5 [GET] /ubuntu-22.04.5-desktop-amd64/casper/vmlinuz 21:40:47 HTTPd:Server : Returning /ubuntu-22.04.5-desktop-amd64/casper/vmlinuz 21:40:47 HTTPd:Client: 192.168.29.5 [GET] /ubuntu-22.04.5-desktop-amd64/casper/initrd 21:40:47 HTTPd:Server : Returning /ubuntu-22.04.5-desktop-amd64/casper/initrd 21:40:48 HTTPd:Exception: , Connection Closed Gracefully. 21:40:48 HTTPd:DisConnect: TID=2624 21:44:44 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:2A06CAAA 21:44:44 DHCPd:OFFER sent, IP:192.168.29.3, XID:2A06CAAA 21:44:46 DHCPd:REQUEST received, MAC:00-0C-29-06-CA-AA, XID:2A06CAAA 21:44:46 DHCPd:ACK sent, IP:192.168.29.3, XID:2A06CAAA 21:44:46 TFTPd:DoReadFile:ipxe.pxe B:1456 T:0 21:44:50 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:681B422B 21:44:50 DHCPd:iPXE user-class detected 21:44:50 DHCPd:OFFER sent, IP:192.168.29.4, XID:681B422B 21:44:52 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:681B422B 21:44:52 DHCPd:iPXE user-class detected 21:44:52 DHCPd:OFFER sent, IP:192.168.29.5, XID:681B422B 21:44:55 DHCPd:REQUEST received, MAC:00-0C-29-06-CA-AA, XID:681B422B 21:44:55 DHCPd:iPXE user-class detected 21:44:55 DHCPd:ACK sent, IP:192.168.29.5, XID:681B422B 21:44:55 TFTPd:DoReadFile:hds_ipxe3.ipxe B:1432 T:5273 21:44:55 HTTPd:Connect: 192.168.29.5, TID=1552 21:44:55 HTTPd:Client: 192.168.29.5 [GET] /hsds_pxe 21:44:55 HTTPd:Server : Returning /hsds_pxe 21:44:59 HTTPd:Client: 192.168.29.5 [GET] /ubuntu-22.04.5-desktop-amd64/casper/vmlinuz 21:44:59 HTTPd:Server : Returning /ubuntu-22.04.5-desktop-amd64/casper/vmlinuz 21:44:59 HTTPd:Client: 192.168.29.5 [GET] /ubuntu-22.04.5-desktop-amd64/casper/initrd 21:44:59 HTTPd:Server : Returning /ubuntu-22.04.5-desktop-amd64/casper/initrd 21:45:00 HTTPd:Exception: , Connection Closed Gracefully. 21:45:00 HTTPd:DisConnect: TID=1552
最新发布
06-30
18:54:07 ROOT=D:\TinyPXE\files\ 18:54:07 DHCPd 192.168.29.2:67 started... 18:54:07 TFPTd 192.168.29.2:69 started... 18:54:07 HTTPd:80 started... 18:54:27 HTTPd:Connect: 192.168.29.2, TID=4508 18:54:27 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/20 18:54:33 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/casper/ 18:54:33 HTTPd:DisConnect: TID=4508 19:15:24 HTTPd:Connect: 192.168.29.2, TID=8148 19:15:24 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/20 19:15:26 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/casper/ 19:15:26 HTTPd:DisConnect: TID=8148 19:24:04 HTTPd:Connect: 192.168.29.2, TID=4752 19:24:04 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/ 19:24:07 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/20/ 19:24:09 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/20/boot/ 19:24:11 HTTPd:Client: 192.168.29.2 [GET] /Ubuntu/20/boot/grub/ 19:24:21 HTTPd:Exception: , Connection Closed Gracefully. 19:24:21 HTTPd:DisConnect: TID=4752 19:24:53 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:2A06CAAA 19:24:53 DHCPd:OFFER sent, IP:192.168.29.3, XID:2A06CAAA 19:24:55 DHCPd:REQUEST received, MAC:00-0C-29-06-CA-AA, XID:2A06CAAA 19:24:55 DHCPd:ACK sent, IP:192.168.29.3, XID:2A06CAAA 19:24:55 TFTPd:DoReadFile:ipxe.pxe B:1456 T:0 19:24:59 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:92BD5E1A 19:24:59 DHCPd:iPXE user-class detected 19:24:59 DHCPd:OFFER sent, IP:192.168.29.4, XID:92BD5E1A 19:25:01 DHCPd:DISCOVER received, MAC:00-0C-29-06-CA-AA, XID:92BD5E1A 19:25:01 DHCPd:iPXE user-class detected 19:25:01 DHCPd:OFFER sent, IP:192.168.29.5, XID:92BD5E1A 19:25:04 DHCPd:REQUEST received, MAC:00-0C-29-06-CA-AA, XID:92BD5E1A 19:25:04 DHCPd:iPXE user-class detected 19:25:04 DHCPd:ACK sent, IP:192.168.29.5, XID:92BD5E1A 19:25:04 TFTPd:DoReadFile:hds_ipxe.ipxe B:1432 T:5327 19:25:04 HTTPd:Connect: 192.168.29.5, TID=1220 19:25:04 HTTPd:Client: 192.168.29.5 [GET] /hsds_pxe 19:25:04 HTTPd:Server : Returning /hsds_pxe 19:25:09 HTTPd:Client: 192.168.29.5 [GET] /Ubuntu/20/casper/initrd 19:25:09 HTTPd:Server : Returning /Ubuntu/20/casper/initrd 19:25:10 HTTPd:Client: 192.168.29.5 [GET] /Ubuntu/20/casper/vmlinuz 19:25:10 HTTPd:Server : Returning /Ubuntu/20/casper/vmlinuz 19:25:10 HTTPd:Exception: , Connection Closed Gracefully. 19:25:10 HTTPd:DisConnect: TID=1220
06-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值