git: libfetch: Fix hang due to SSL server closing before read completes

John Marino marino at crater.dragonflybsd.org
Thu Nov 1 14:57:00 PDT 2012


commit 5807cf3c35db5fe11789b11a0bbdc96210746d1f
Author: John Marino <draco at marino.st>
Date:   Thu Nov 1 20:31:08 2012 +0100

    libfetch: Fix hang due to SSL server closing before read completes
    
    If the server sends a close notification before before a SSL read
    operation is complete, fetch will hang.  Fix this by reworking
    fetch_read() to use non-blocking sockets.
    
    Taken-From: FreeBSD SVN 210568 (28 JUL 2010)
    Taken-From: FreeBSD SVN 214256 (23 OCT 2010)

Summary of changes:
 lib/libfetch/common.c |  109 ++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 89 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5807cf3c35db5fe11789b11a0bbdc96210746d1f


-- 
DragonFly BSD source repository



More information about the Commits mailing list