lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Avoid connection close by lwIP server


From: Sylvain Rochet
Subject: Re: [lwip-users] Avoid connection close by lwIP server
Date: Mon, 16 Dec 2013 11:22:24 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

On Mon, Dec 16, 2013 at 07:41:06AM +0100, Satz Klauer wrote:
> Hi,
> 
> I'm currently new to lwIP and so I'm still trying to understand it.
> Thus I used the httpserver_raw example as starting point for my
> application.
> 
> Since I do not need a http-connection which closes socket after every
> successfull transmission, but a connection where data are exchanged in
> both directions for a longer until the client drops the connection, I
> modified the http-example a bit: parsing for "GET /" was removed, data
> are received permanentely and http_parse_request() generates some
> test-response.
> 
> Now http_parse_request() returns ERR_OK but the connection is still
> closed after transmission of my test data. So my question: where is
> this planned closing of http-connection done?

You should learn a little bit how HTTP work.

What you actually have to do is adding a HTTP Keep-Alive support, which 
is a bit more difficult than just keeping the TCP connection open :)

See: http://en.wikipedia.org/wiki/HTTP_persistent_connection

Sylvain

Attachment: signature.asc
Description: Digital signature


reply via email to

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