Skip to content

Commit 092f716

Browse files
pfalconjukkar
authored andcommitted
samples: sockets: dumb_http_server: Disable TIME_WAIT delay
This is required to test the server with ab (ApacheBench), which itself is an important integration test for the IP stack. Fixes: #7377 Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent 89f57c2 commit 092f716

File tree

1 file changed

+5
-0
lines changed
  • samples/net/sockets/dumb_http_server

1 file changed

+5
-0
lines changed

samples/net/sockets/dumb_http_server/prj.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ CONFIG_NET_APP_NEED_IPV4=y
1818
CONFIG_NET_APP_MY_IPV4_ADDR="192.0.2.1"
1919
CONFIG_NET_APP_PEER_IPV4_ADDR="192.0.2.2"
2020

21+
# Networking tweaks
22+
# Required to handle large number of consecutive connections,
23+
# e.g. when testing with ApacheBench.
24+
CONFIG_NET_TCP_TIME_WAIT_DELAY=0
25+
2126
# Network debug config
2227
#CONFIG_NET_DEBUG_SOCKETS=y
2328
CONFIG_SYS_LOG_NET_LEVEL=2

0 commit comments

Comments
 (0)