Skip to content

Commit

Permalink
fix EOF error
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Apr 29, 2020
1 parent d48aa42 commit 8e82e19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion w3af/core/data/url/openssl_wrapper/ssl_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import socket
import select
import OpenSSL
from OpenSSL.SSL import SysCallError

from ndg.httpsclient.subj_alt_name import SubjectAltName
from pyasn1.codec.der.decoder import decode as der_decoder
Expand Down Expand Up @@ -122,7 +123,7 @@ def close(self):
def recv(self, *args, **kwargs):
try:
data = self.ssl_conn.recv(*args, **kwargs)
except OpenSSL.SSL.ZeroReturnError:
except (OpenSSL.SSL.ZeroReturnError, SysCallError):
# empty string signalling that the other side has closed the
# connection or that some kind of error happen and no more reads
# should be done on this socket
Expand Down

0 comments on commit 8e82e19

Please sign in to comment.