Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on SO_LINGER for client communication sockets. #30

Merged
merged 1 commit into from
Jan 25, 2016

Commits on Jan 25, 2016

  1. Turn on SO_LINGER for client communication sockets.

    This reduces the probability that the receiver receives errors when we
    close our end of the socket with data remaining.
    
    There is deadlock potential with this patch, because turning on `SO_LINGER`
    causes `close()` to block until the receiver has received all the data. If
    deadlocks happen, a workaround will be to close sockets in a separate thread.
    This is ugly and slow, so I don't want to do that unless we need to.
    
    Might fix servo#29.
    pcwalton committed Jan 25, 2016
    Configuration menu
    Copy the full SHA
    0146ae7 View commit details
    Browse the repository at this point in the history