【在 t****t 的大作中提到】 : seg fault有99%是你自己程序的毛病, 跟socket没关系.
j*n
4 楼
只是确认一下,block住的socket是可以close的,对吧?
【在 t****t 的大作中提到】 : seg fault有99%是你自己程序的毛病, 跟socket没关系.
p*o
5 楼
Well, I will assume you do accept in one thread and do close in another. So just make sure your code handles the situation where the accept fails due to the close.