trans: set non blocking socket after accept
This commit is contained in:
parent
b0e1e21305
commit
fac0907a3c
@ -330,7 +330,7 @@ trans_check_wait_objs(struct trans *self)
|
|||||||
sizeof(self->addr) - 1);
|
sizeof(self->addr) - 1);
|
||||||
g_strncpy(in_trans->port, self->port,
|
g_strncpy(in_trans->port, self->port,
|
||||||
sizeof(self->port) - 1);
|
sizeof(self->port) - 1);
|
||||||
|
g_sck_set_non_blocking(in_sck);
|
||||||
if (self->trans_conn_in(self, in_trans) != 0)
|
if (self->trans_conn_in(self, in_trans) != 0)
|
||||||
{
|
{
|
||||||
trans_delete(in_trans);
|
trans_delete(in_trans);
|
||||||
|
Loading…
Reference in New Issue
Block a user