Displaying 2 results from an estimated 2 matches for "net_listen".
2006 Jun 15
1
Broken on upgrade, "Protocol not supported"
...ime passes...>
After some printf's, I found
Error: socket() failed: Protocol not supported
Error: section 2
port = 993
my_ip.family = 0
so.sin.family = 0
SOCK_STREAM = 1
AF_UNIX = 1
AF_INET = 2
AF_INET6 = 24
Fatal: listen(993) failed: Protocol not supported
in function net_listen(...) in src/lib/network.c. My socket programming
is a little rusty, but don't we want an address family of AF_INET or
AF_INET6? Moving up into src/master/main.c I found
set->protocols = imap imaps
set->listen_ip.family = 2
set->listen_port = 143
set->ssl_listen_ip.family =...
2017 Apr 14
0
Test error: net_connect_ip(127.0.0.1:0) failed: Can't assign requested address
...rawlog_dir = "",
.connect_timeout_msecs = 500,
.connect_retry_count = 3,
.connect_retry_interval_msecs = 10,
.max_idle_time = 10000,
};
The client fails if the server is not listening...
Is the test server listening?
static int test_open_server_fd(in_port_t *bind_port)
{
int fd = net_listen(&bind_ip, bind_port, 128);
if (debug)
i_debug("server listening on %u", *bind_port);
if (fd == -1) {
i_fatal("listen(%s:%u) failed: %m",
net_ip2addr(&bind_ip), *bind_port);
}
fd_set_nonblock(fd, FALSE);
return fd;
}
Forcing debug...
>grep 'static bool d...