Skip to content

Commit

Permalink
do not refuse slave connections if they connect too fast
Browse files Browse the repository at this point in the history
  • Loading branch information
vient authored and il-steffen committed Jun 21, 2021
1 parent 4263363 commit f9ec000
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kAFL-Fuzzer/fuzzer/communicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@


class ServerConnection:

def __init__(self, config):

Listener.fileno = lambda self: self._listener._socket.fileno()

self.address = config.argument_values["work_dir"] + "/slave_socket"
self.listener = Listener(self.address, 'AF_UNIX')
self.listener = Listener(self.address, 'AF_UNIX', backlog=1000)
self.clients = [self.listener]

def wait(self, timeout=None):
Expand Down Expand Up @@ -59,6 +56,7 @@ def send_node(self, client, task_data):
def send_busy(self, client):
client.send_bytes(msgpack.packb({"type": MSG_BUSY}, use_bin_type=True))


class ClientConnection:
def __init__(self, id, config):
self.id = id
Expand Down

0 comments on commit f9ec000

Please sign in to comment.