Interview Questions

What exactly does SO_LINGER do?

Unix Socket FAQ for Network programming


(Continued from previous question...)

What exactly does SO_LINGER do?

On some unixes this does nothing. On others, it instructs the kernel to abort tcp connections instead of closing them properly. This can be dangerous.

(Continued on next question...)

Other Interview Questions