Hi all,
Since my problem is not resolved, I ask you again to help me.
I use the HTTP (RAW version) server provided by the lwip site in the
/contrib/apps/httpserver_raw folder.
Sometimes, the argument passed to http_sent is NULL which leads an
hardfault exception. In the majority of
What does your http_poll do?
From: lwip-users-bounces+bauerbach=arrayonline@nongnu.org
[mailto:lwip-users-bounces+bauerbach=arrayonline@nongnu.org] On Behalf
Of Baptiste Chaboud-crousaz
Sent: Thursday, August 06, 2009 5:51 AM
To: lwip-users@nongnu.org
Subject: Re: [lwip-users] Problem
Hi,
please find here my function http_poll:
static err_t
http_poll(void *arg, struct tcp_pcb *pcb)
{
struct http_connect_state* hcs;
hcs = arg;
if (hcs == NULL) {
tcp_abort(pcb);
return ERR_ABRT;
} else {
++hcs-retries;
if (hcs-retries =
Baptiste Chaboud-crousaz wrote:
Can you explain me what is the purpose of this function?
The poll function is used for timeout handling. For example, the http
server closes connections that are idle for too long (poll is called
twice without data sent or received in between).
Hey I just tried your changes, and they seem to have fixed an issue I was just
having on my code. In FireFox my HTTP page was showing up correct, but in IE
it acted different and seemed to get corrupted data. It's a bit larger page
with 3 files a couple of which are about 16K each, so I know
Yes I can confirm that you need to check for the NULL. Arg=NULL shows up
regularly in normal http processing after the connection is closed, and the
alloc mem for hs (arg) gets released. At least that's what I see in my server
code, but it is somewhat dependent on how the other callback
I am currently using lwIP 1.3.0, but this issue appears to remain in the
latest revision of udp.c.
Right now I am implementing PTPv2(IEEE 1588) using lwIP and it requires
that all its packets be broadcast to a specific port and address. This
restriction only applies to the destination port of
I agree. This is definitely a bug. I've filed a bug report for it on Savannah.
https://savannah.nongnu.org/bugs/index.php?27199
Well spotted.
- Original Message -
From: Mousom
To: lwip-users@nongnu.org
Sent: Thursday, August 06, 2009 10:11 PM
Subject: [lwip-users] Bug in