On Thu, 2009-02-19 at 09:49 +0100, Bernhard 'Gustl' Bauer wrote: > Hi, > > I try to speed up my lwip implementation by using keep-alive http > connections. I have enabled LWIP_TCP_KEEPALIVE but I don't really think > I need it, because I never reach the timeout.
TCP keepalives, and persistent HTTP connections are different things. You're right that you don't need LWIP_TCP_KEEPALIVE, as it should have no effect on HTTP traffic, and won't speed anything up. Persistent HTTP connections will, but they are different. > If I read httpd.c correct every time a file is sent out the http > connection is closed by close_conn(). I want to replace close_conn() > with a function that does all the necessary things to receive another > paket without closing the connection and call http_recv() again. Maybe I > need some timeout and close the connection if the browser has shut down. > > Any ideas how to do this would be appreciated. I think the example httpd only support HTTP 1.0. For persistent connections it would have to be upgraded to use HTTP 1.1. Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
