mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 17:33:08 +00:00
tried to fix unix domain socket "no buffer space available" bug,
but to no avail.
This commit is contained in:
parent
30471f19ef
commit
d9fd7ce33e
@ -83,6 +83,7 @@ int overlay_mdp_setup_sockets()
|
||||
int send_buffer_size=64*1024;
|
||||
int res = setsockopt(mdp_named_socket, SOL_SOCKET, SO_SNDBUF,
|
||||
&send_buffer_size, sizeof(send_buffer_size));
|
||||
if (res) WHYF("setsockopt() failed: errno=%d",errno);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1056,6 +1057,12 @@ int overlay_mdp_client_init()
|
||||
perror("bind");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int send_buffer_size=128*1024;
|
||||
int res = setsockopt(mdp_client_socket, SOL_SOCKET, SO_SNDBUF,
|
||||
&send_buffer_size, sizeof(send_buffer_size));
|
||||
if (res) WHYF("setsockopt() failed: errno=%d",errno);
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user