mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01: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:
committed by
Christian Helmuth
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);
|
||||
|
||||
Reference in New Issue
Block a user