[haiku-commits] Change in haiku[master]: BSecureSocket: Treat SSL-zero-return as B_IO_ERROR

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 16 Jan 2021 15:10:04 +0000

From Stephan Aßmus <superstippi@xxxxxx>:

Stephan Aßmus has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3635 ;)


Change subject: BSecureSocket: Treat SSL-zero-return as B_IO_ERROR
......................................................................

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
---
M src/kits/network/libnetapi/SecureSocket.cpp
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/35/3635/1

diff --git a/src/kits/network/libnetapi/SecureSocket.cpp 
b/src/kits/network/libnetapi/SecureSocket.cpp
index 399b213..7b90fbb 100644
--- a/src/kits/network/libnetapi/SecureSocket.cpp
+++ b/src/kits/network/libnetapi/SecureSocket.cpp
@@ -199,7 +199,7 @@
                        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;

--
To view, visit https://review.haiku-os.org/c/haiku/+/3635
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I58c4d4faa705e6519e0ff9ec7c4654a6151e5486
Gerrit-Change-Number: 3635
Gerrit-PatchSet: 1
Gerrit-Owner: Stephan Aßmus <superstippi@xxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: BSecureSocket: Treat SSL-zero-return as B_IO_ERROR - Gerrit