[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW]
From: |
Kieran Mansley |
Subject: |
RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW] |
Date: |
Tue, 11 Aug 2009 08:58:56 +0100 |
On Mon, 2009-08-10 at 13:24 -0400, Ben Hastings wrote:
> static err_t http_recv_callback(void *arg, struct tcp_pcb *pcb, struct
> pbuf *p, err_t err) {
> struct web_t *webdata = arg;
> if (err == ERR_OK) {
> if (p == NULL) {
> if (pcb->state == CLOSE_WAIT) {
> tcp_close(pcb); //received FIN, need to send FIN
> }
I don't think you need that if () {} around tcp_close(), although it's
probably OK.
Kieran
- Re: [lwip-users] http_sent cb shows 1 byte trailer [RAW], (continued)
- RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Bill Auerbach, 2009/08/12
- RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Simon Goldschmidt, 2009/08/12
- RE: [lwip-users] Improved HTTP webserver (was: http_sent cb shows 1 byte trailer [RAW]), Bill Auerbach, 2009/08/12
- RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Pettinato, Jim, 2009/08/12
- Re: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Jeff Barber, 2009/08/10
- Re: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Kieran Mansley, 2009/08/11
- RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Ben Hastings, 2009/08/10
- RE: [lwip-users] http_sent cb shows 1 byte trailer [RAW],
Kieran Mansley <=
Fw: [lwip-users] http_sent cb shows 1 byte trailer [RAW], Chris Strahm, 2009/08/11