]> git.ipfire.org Git - thirdparty/curl.git/commit
url: change conn shutdown order to unlink data as last step
authorJay Satiro <raysatiro@yahoo.com>
Thu, 21 Feb 2019 20:30:10 +0000 (15:30 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 22 Feb 2019 20:19:42 +0000 (15:19 -0500)
commit7466d1a3083150da636251b156efbd520b01f1af
tree5c8dc3a453f85ea22aae28cad0229a766e1d0c65
parent50f1bb263241aef5aaf3225351cc199b1756fc39
url: change conn shutdown order to unlink data as last step

- Split off connection shutdown procedure from Curl_disconnect into new
  function conn_shutdown.

- Change the shutdown procedure to close the sockets before
  disassociating the transfer.

Prior to this change the sockets were closed after disassociating the
transfer so SOCKETFUNCTION wasn't called since the transfer was already
disassociated. That likely came about from recent work started in
Jan 2019 (#3442) to separate transfers from connections.

Bug: https://curl.haxx.se/mail/lib-2019-02/0101.html
Reported-by: Pavel Löbl
Closes https://github.com/curl/curl/issues/3597
Closes https://github.com/curl/curl/pull/3598
lib/url.c