I have a set of TCP sockets with keep-alive (interval 1 min), controlled by a select(2)
loop (selecting for read).
- Will
select(2)
return an error if keep-alive timeout has happened for one of the sockets in the set?
- Which error will
read(2)
return?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…