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

sendf.c: Makes further attempts at updateconninfo if first failed #1847

Closed
wants to merge 1 commit into from

Commits on Sep 15, 2017

  1. sendf.c: Makes further attempts at updateconninfo if first failed

    When using non-blocking sockets, such as TCP Fast Open sockets,
    connection information may not be available at the time the
    socket is "created". For TCP Fast Open, the creation can even be
    a NOP as far as the network is concerned.
    
    This change adds tests to the Curl_send and Curl_recv functions
    to make further attempts at updating the connection information
    for as long as local_port in the connectdata struct is zero.
    
    Once a call to Curl_updateconninfo has succeeded, and so updated
    the local_port field, there will be no further calls to
    Curl_updateconninfo.
    
    Closes: curl#1332
    irl committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    1705d63 View commit details
    Browse the repository at this point in the history