mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +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
|
0.163
|
||||||
- fix hanging connections for some user (boo#1068470)
|
|
||||||
- add sendsysrq command (requires OBS 2.10)
|
- add sendsysrq command (requires OBS 2.10)
|
||||||
|
|
||||||
0.162.1
|
0.162.1
|
||||||
|
@ -216,17 +216,12 @@ class myHTTPSHandler(M2Crypto.m2urllib2.HTTPSHandler):
|
|||||||
# So make sure the connection gets closed after the (only)
|
# So make sure the connection gets closed after the (only)
|
||||||
# request.
|
# request.
|
||||||
headers["Connection"] = "close"
|
headers["Connection"] = "close"
|
||||||
# closing connection ourself to avoid hanging connnections: bsc#1068470
|
|
||||||
#headers["Connection"] = "close"
|
|
||||||
try:
|
try:
|
||||||
h.request(req.get_method(), selector, req.data, headers)
|
h.request(req.get_method(), selector, req.data, headers)
|
||||||
s = h.get_session()
|
s = h.get_session()
|
||||||
if s:
|
if s:
|
||||||
self.saved_session = s
|
self.saved_session = s
|
||||||
r = h.getresponse()
|
r = h.getresponse()
|
||||||
|
|
||||||
# close the connection ourselves
|
|
||||||
h.close()
|
|
||||||
except socket.error as err: # XXX what error?
|
except socket.error as err: # XXX what error?
|
||||||
err.filename = full_url
|
err.filename = full_url
|
||||||
raise M2Crypto.m2urllib2.URLError(err)
|
raise M2Crypto.m2urllib2.URLError(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user