mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-12 09:03:12 +03:00
there is a huge problem with urllib2 connections that sockets are left opened causing problems with lots of disposable connections used (like in --threads) (http://mail.python.org/pipermail/python-bugs-list/2007-January/036873.html, http://mail.python.org/pipermail/python-bugs-list/2007-January/036873.html)
This commit is contained in:
parent
7ea3d060f6
commit
ef27fd5ea1
|
@ -240,6 +240,7 @@ class Connect:
|
||||||
# Explicit closing of connection object
|
# Explicit closing of connection object
|
||||||
if not conf.keepAlive:
|
if not conf.keepAlive:
|
||||||
try:
|
try:
|
||||||
|
conn.fp._sock.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
except Exception, msg:
|
except Exception, msg:
|
||||||
warnMsg = "problem occured during connection closing ('%s')" % msg
|
warnMsg = "problem occured during connection closing ('%s')" % msg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user