Skip to content

Receive timeout does not work #740

@ikarus23

Description

@ikarus23

Report

Setting the socket timeout (or just using the default 5 seconds) does not work. The fuzzer hangs at "Info: Receiving..." forever.

Expected behavior

When setting receive_data_after_fuzz=True (in session), and a recv_timeout=1 (in connection) the fuzzer should wait a maximum of 1 second for data after a sending a fuzz packet.

Actual behavior

When setting receive_data_after_fuzz=True (in session), and a recv_timeout=1 (in connection) the fuzzer waits forever for a packet from the target.

Steps to reproduce the problem

See above

boofuzz script

boofuzz version

0.4.2

Python version

3.13

Platform

Linux

Anything else?

This is how the timeout for the socket is set:

self._sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVTIMEO, _seconds_to_sockopt_format(self._recv_timeout))

If I change it to self._sock.settimeout(self._recv_timeout) it works. Not sure if this will also mess with the send timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions