some cleanups and bug fixes.
This commit is contained in:
parent
3447dbe03f
commit
7c12fe04e6
6 changed files with 25 additions and 17 deletions
|
|
@ -27,12 +27,11 @@ class TcpconnectService(Service):
|
|||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
except socket.error, msg:
|
||||
|
||||
#log.w("%s\n" % msg[1])
|
||||
self.errorcode = 1
|
||||
|
||||
try:
|
||||
sock.connect((self.host, self.port))
|
||||
sock.connect((host, self.port))
|
||||
except socket.error, msg:
|
||||
#log.w("%s\n" % msg[1])
|
||||
self.errorcode = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue