[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Listen/Accept lwip 2.0.0
From: |
Marcelo V |
Subject: |
[lwip-users] Listen/Accept lwip 2.0.0 |
Date: |
Thu, 4 May 2017 10:44:10 -0400 |
Hello,
I am implementing a small web-server using lwip 2.0.0 and it seems that the TCP
stack is accepting more connections than set by my listen call.
In my use-case I have an webpage with HTML requesting many external resources
to be loaded. However, I want to only serve max of 4 requests simultaneously (4
sessions) and “keep-alive” is disable (replies 200 OK with "connection: close”).
However, as soon as my code replies the very first accepted connection then I
see my web browser issuing 8~10 GET’s even before I call accept again.
Wireshark shows those 8~10 connections each with their port number and the
entire GET had flown to the server.
It seems that the number of connections provided by the listen were ignored and
TCP is accepting and buffering all requests.
I browsed the bug track and I did not find anything being reported.
How can I prevent this?
Thanks in advance,
Marcelo
- [lwip-users] Listen/Accept lwip 2.0.0,
Marcelo V <=