lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] HTTPS support in lwip


From: Simon Goldschmidt
Subject: Re: [lwip-users] HTTPS support in lwip
Date: Thu, 18 May 2017 15:16:27 +0200

Noam Weissman wrote:
> Is there a way to limit the number of concurrent HTTP connection, say to one ?

Listen backlog does not help much here. You'd have to close the listener after 
accepting the first connection.
Reopening it later might require SO_REUSE though.

Alternatively, you could set MEMP_NUM_TCP_PCB to 1 to allow only one TCP 
connection at all. I guess you'd additionally have to increase the prio of the 
connection pcb to prevent a new connection from closing the existing one (see 
tcp_alloc/tcp_kill_prio).

However, in both cases, the browser will still try to open more than one 
connection and get back a RST. I don't know if resources scheduled over such an 
attempted connection are retried on a different connection later? Last time I 
tried with Chrome, they were just missing when the page was rendered :-(


Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]