mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
http_add_connection: add connections to the front to be faster (and really fix bug #50059)
(cherry picked from commit ea093d3a53
)
This commit is contained in:
parent
3c4aec99a4
commit
0b7bef5420
@ -340,14 +340,8 @@ static void
|
||||
http_add_connection(struct http_state *hs)
|
||||
{
|
||||
/* add the connection to the list */
|
||||
if (http_connections == NULL) {
|
||||
http_connections = hs;
|
||||
} else {
|
||||
struct http_state *last;
|
||||
for(last = http_connections; last->next != NULL; last = last->next);
|
||||
LWIP_ASSERT("last != NULL", last != NULL);
|
||||
last->next = hs;
|
||||
}
|
||||
hs->next = http_connections;
|
||||
http_connections = hs;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user