[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Problem with multi file sending http server
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Problem with multi file sending http server |
Date: |
Fri, 26 Nov 2010 06:46:29 +0100 |
"Mariusz Dz" <address@hidden> wrote:
> I hope i understand order of calls, now i have got order like this:
>
> //some operation on data
> //close file etc.
>
> pbuf_free(p);
> hs->file = pointer_on_data;
> hs->left = data_length
> tcp_recved(pcb, p->tot_len);
No, that's wrong. Ppuf_free is like delete and you must not go on using a pbuf
after it has been freed. This means not accessing the data AND not accessing
any of it's members!
Simon
- [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/26
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/26
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/26