mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-10 21:01:49 +00:00
lwip plugin: support large backlog values
iperf, e.g., uses INT_MAX as backlog argument to the listen() call Fixes genodelabs/genode#4341
This commit is contained in:
parent
79e69a5549
commit
2e1a1c199e
@ -1547,9 +1547,9 @@ class Lwip::Tcp_socket_dir final :
|
||||
break;
|
||||
|
||||
case Lwip_file_handle::LISTEN:
|
||||
if ((state == BOUND) && (count < 7)) {
|
||||
if ((state == BOUND) && (count < 11)) {
|
||||
unsigned long backlog = TCP_DEFAULT_LISTEN_BACKLOG;
|
||||
char buf[8];
|
||||
char buf[12];
|
||||
|
||||
copy_cstring(buf, src, min(count+1, sizeof(buf)));
|
||||
Genode::ascii_to_unsigned(buf, backlog, 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user