-
Notifications
You must be signed in to change notification settings - Fork 7
Labels
bugSomething isn't workingSomething isn't working
Description
Consider this trivial snippet with a 0
timeout:
#include "../src/Client/Connector.hpp"
using Buf_t = tnt::Buffer<16 * 1024>;
using Net_t = LibevNetProvider<Buf_t, DefaultStream>;
int
main()
{
Connector<Buf_t, Net_t> client;
Connection<Buf_t, Net_t> conn(client);
struct ConnectOptions conn_opts{
.address = "127.0.0.1",
.service = "3301",
.connect_timeout = 0,
};
client.connect(conn, conn_opts);
}
However, in the logs instead of a timeout error you will see:
ERROR: Failed to connect: Operation now in progress
ERROR: Failed to connect to 127.0.0.1:3301
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working