mirror of
https://github.com/Cronocide/wifipumpkin3.git
synced 2025-01-23 11:48:57 +00:00
fixed bug file descriptor bad dhcpserver
This commit is contained in:
parent
7763e38491
commit
4e88b7a435
@ -76,6 +76,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Removed all files *.py compiler. [mh4x0f]
|
- Removed all files *.py compiler. [mh4x0f]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- fixed bug file descriptor bad dhcpserver [mh4x0f]
|
||||||
- fixed bug when try to load all plugins on sniffkin3 [mh4x0f]
|
- fixed bug when try to load all plugins on sniffkin3 [mh4x0f]
|
||||||
- fixed mascared bug file descriptor bad partial solution [mh4x0f]
|
- fixed mascared bug file descriptor bad partial solution [mh4x0f]
|
||||||
- Fixed session id not empty when start app. [mh4x0f]
|
- Fixed session id not empty when start app. [mh4x0f]
|
||||||
|
@ -149,8 +149,12 @@ class DHCPThread(QThread):
|
|||||||
self.DHCPProtocol.connection_made(self.sock)
|
self.DHCPProtocol.connection_made(self.sock)
|
||||||
#log.debug("Starting UDP server")
|
#log.debug("Starting UDP server")
|
||||||
while self.started:
|
while self.started:
|
||||||
|
try:
|
||||||
message, address = self.sock.recvfrom(1024)
|
message, address = self.sock.recvfrom(1024)
|
||||||
self.DHCPProtocol.datagram_received(message, address)
|
self.DHCPProtocol.datagram_received(message, address)
|
||||||
|
except Exception as e:
|
||||||
|
# OSError: [Errno 9] Bad file descriptor when close socket
|
||||||
|
pass
|
||||||
|
|
||||||
def getpid(self):
|
def getpid(self):
|
||||||
""" return the pid of current process in background"""
|
""" return the pid of current process in background"""
|
||||||
@ -164,7 +168,4 @@ class DHCPThread(QThread):
|
|||||||
self.started = False
|
self.started = False
|
||||||
Refactor.writeFileDataToJson(C.CLIENTS_CONNECTED, {}, 'w')
|
Refactor.writeFileDataToJson(C.CLIENTS_CONNECTED, {}, 'w')
|
||||||
print('Thread::[{}] successfully stopped.'.format(self.objectName()))
|
print('Thread::[{}] successfully stopped.'.format(self.objectName()))
|
||||||
#TODO: bug: Bad file descriptor with socket SO_REUSEADDR activate
|
self.sock.close()
|
||||||
# OSError: [Errno 9] Bad file descriptor when close socket
|
|
||||||
# the tempp solution is not close socket in time excutation
|
|
||||||
#self.sock.close()
|
|
Loading…
Reference in New Issue
Block a user