用alarm信号处理阻塞socket的超时2011年11月22日•Internet、Linux、我的代码•11 条评论以前在使用阻塞(blocked)socket的connect,send,recv函数的时候,通常都使用settimeout来设置超时。 如下,