Skip to content

socket.cc recv() timeout #156

@extf33

Description

@extf33

I implemented a custom mutator, and it takes about 1~5 mins for one mutate cycle.

When I run wtf with the custom mutator, I get the following error:

Could not receive size (-1)
Receive failed

wtf/src/wtf/socket.cc

Lines 241 to 245 in 3ccad88

if (const int R = recv(Fd, (char *)CurrentBuffer, sizeof(uint32_t), 0);
R == -1 || R != sizeof(uint32_t)) {
fmt::print("Could not receive size ({})\n", R);
return std::nullopt;
}

Is there any part of the code that sets the timeout or flag such as O_NONBLOCK?

Actually, I already checked O_NONBLOCK.

int is_block = !(fnctl(Fd, F_GETFL, 0) & O_NONBLOCK);
// Result: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions