lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] http_sent cb shows 1 byte trailer [RAW]


From: Jeff Barber
Subject: Re: [lwip-users] http_sent cb shows 1 byte trailer [RAW]
Date: Mon, 10 Aug 2009 16:36:58 -0400

On Mon, Aug 10, 2009 at 1:41 PM, Chris Strahm<address@hidden> wrote:
>>> Maybe recursion?
>>> Where is close_conn being called from here?
>
> It comes from my send_data() routine.
> Once all of the data to send has been written to tcp_write(),
> then close_conn gets called, and send_data() returns.

Don't know exactly what your source looks like but in the
contrib/apps/httpserver_raw/httpd.c, http_recv calls send_data and
then calls http_sent immediately afterward.  This is okay in the
contrib version because send_data does *not* call close_conn.

Jeff




reply via email to

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