30dayMakeCppServer icon indicating copy to clipboard operation
30dayMakeCppServer copied to clipboard

在Ubuntu20.04系统上,按照作者的方法运行,server那边没有反映

Open Purepipha opened this issue 3 years ago • 4 comments

不知道原因

Purepipha avatar Jan 25 '22 05:01 Purepipha

由于第一次运行是没有收到client的请求指令,导致服务器的端口阻塞导致的,重启计算机即可解决,应该有更好的解决办法,暂时还没有找到

Purepipha avatar Jan 25 '22 06:01 Purepipha

不懂为啥要重启计算机,control+C杀掉终端不行吗?

yuesong-feng avatar Feb 06 '22 09:02 yuesong-feng

crtl+c可以,之前不知道为啥不行,之前试的时候不可以。

Purepipha avatar Feb 06 '22 09:02 Purepipha

我遇到过,Server启动后,在处理Client链接过程中程序崩溃。再重启Server,报端口占用。但是等一分钟左右就好了。不知道你是不是这个情况。 端口占用大概是所谓Time_Wait的2MSL等待时间。 https://www.zhihu.com/question/67013338

Valandilich avatar Apr 21 '22 11:04 Valandilich