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: 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





reply via email to

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