[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets |
Date: |
Wed, 2 Mar 2016 18:20:16 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Try something like this (as a test, not a proposed solution):
err_t myrecv(void *arg, struct tcp_pcb* pcb, struct pbuf *p, err_t err)
{
if ((p == NULL) || (err != ERR_OK)){
call to tcp_close()
return ERR_OK;
}
tcp_recved(pcb, p->tot_len);
pbuf_free(p);
do your stuff but do not call tcp_close()
return ERR_OK;
And see what happens.
Are you running 1.4.1 (where did you get it from ?) or git head ?
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Gustavo Pinho Oliveira, 2016/03/02
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Sergio R. Caprile, 2016/03/02
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Gustavo Pinho Oliveira, 2016/03/02
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Sergio R. Caprile, 2016/03/02
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Gustavo Pinho Oliveira, 2016/03/02
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets,
Sergio R. Caprile <=
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Sergio R. Caprile, 2016/03/02
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Gustavo Pinho Oliveira, 2016/03/03
- Re: [lwip-users] HTTP Auth, LWIP connection management and FIN packets, Sergio R. Caprile, 2016/03/03