mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Revert "handle SSL connection closing ourself as advised in boo#1068470 bye"
This reverts commit 0ddb598743
.
was incomplete and seems to be the wrong approach
This commit is contained in:
parent
5fb71aa6d4
commit
305501f92c
1
NEWS
1
NEWS
@ -1,5 +1,4 @@
|
||||
0.163
|
||||
- fix hanging connections for some user (boo#1068470)
|
||||
- add sendsysrq command (requires OBS 2.10)
|
||||
|
||||
0.162.1
|
||||
|
@ -216,17 +216,12 @@ class myHTTPSHandler(M2Crypto.m2urllib2.HTTPSHandler):
|
||||
# So make sure the connection gets closed after the (only)
|
||||
# request.
|
||||
headers["Connection"] = "close"
|
||||
# closing connection ourself to avoid hanging connnections: bsc#1068470
|
||||
#headers["Connection"] = "close"
|
||||
try:
|
||||
h.request(req.get_method(), selector, req.data, headers)
|
||||
s = h.get_session()
|
||||
if s:
|
||||
self.saved_session = s
|
||||
r = h.getresponse()
|
||||
|
||||
# close the connection ourselves
|
||||
h.close()
|
||||
except socket.error as err: # XXX what error?
|
||||
err.filename = full_url
|
||||
raise M2Crypto.m2urllib2.URLError(err)
|
||||
|
Loading…
Reference in New Issue
Block a user