Skip to content

Commit fa74171

Browse files
author
Sean Cribbs
committed
Merge pull request basho#347 from basho/bugfix/bch/timeout-test
Attempt to fix exception thrown in test_index_timeout()
2 parents e1b485b + bae2998 commit fa74171

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

riak/transports/security.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ def sendall(self, data):
7676
return self.connection.sendall(bytes(data))
7777

7878
def close(self):
79-
return self.connection.shutdown()
79+
try:
80+
return self.connection.shutdown()
81+
except OpenSSL.SSL.Error as err:
82+
if err.args == ([],):
83+
return False
84+
else:
85+
raise err
8086

8187

8288
# Blatantly Stolen from

0 commit comments

Comments
 (0)