[haiku-commits] haiku: hrev54894 - src/kits/network/libnetapi

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 16 Jan 2021 11:32:34 -0500 (EST)

hrev54894 adds 1 changeset to branch 'master'
old head: 648fdf2310004ee75244ea48d29eca1d69c05afc
new head: 60c165a53c7d13d90accce76100c1310e0bca11a
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=60c165a53c7d+%5E648fdf231000

----------------------------------------------------------------------------

60c165a53c7d: BSecureSocket: Treat SSL-zero-return as B_IO_ERROR
  
  Somehow B_CANCELED doesn't seem to convey the correct
  meaning. Using B_IO_ERROR will also fit to the recent
  changes in the Package Kit and will trigger a re-try of
  package downloads.
  
  Change-Id: I58c4d4faa705e6519e0ff9ec7c4654a6151e5486
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/3635
  Reviewed-by: Adrien Destugues <pulkomandy@xxxxxxxxx>

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54894
Commit:      60c165a53c7d13d90accce76100c1310e0bca11a
URL:         https://git.haiku-os.org/haiku/commit/?id=60c165a53c7d
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Sat Jan 16 16:02:39 2021 UTC
Committer:   Adrien Destugues <pulkomandy@xxxxxxxxx>
Commit-Date: Sat Jan 16 16:32:32 2021 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/network/libnetapi/SecureSocket.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/network/libnetapi/SecureSocket.cpp 
b/src/kits/network/libnetapi/SecureSocket.cpp
index 399b213f73..7b90fbb3c2 100644
--- a/src/kits/network/libnetapi/SecureSocket.cpp
+++ b/src/kits/network/libnetapi/SecureSocket.cpp
@@ -199,7 +199,7 @@ BSecureSocket::Private::ErrorCode(int returnValue)
                        return B_NO_ERROR;
                case SSL_ERROR_ZERO_RETURN:
                        // Socket is closed
-                       return B_CANCELED;
+                       return B_IO_ERROR;
                case SSL_ERROR_SSL:
                        // Probably no certificate
                        return B_NOT_ALLOWED;


Other related posts:

  • » [haiku-commits] haiku: hrev54894 - src/kits/network/libnetapi - Adrien Destugues