Hello,
Oh! I forgot to include the netbuf_delete( ) function only in my mail. Sorry my
bad. But in my code it is included. And I have the same result.
As I was looking into the packets being sent back and forth and noticed that
HTTP client receives only first response from HTTP server(not 2 responses).
Following GET request is blocked in the LWIP netconn_recv() (netconn_recv ==
NULL) function but the response is sent (displayed in Wireshark tool). First
response data are corrupted. Corrupted data are located near the concatenation
of the 2 packets received for the response.
Thanks
--- On Thu, 12/4/08, greencity <[EMAIL PROTECTED]> wrote:
From: greencity <[EMAIL PROTECTED]>
Subject: re:[lwip-users] netconn_recv issue
To: [EMAIL PROTECTED]
Date: Thursday, December 4, 2008, 3:41 PM
----- Original Message -----
From: xiejh
To: [EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 3:39 PM
Subject: re:[lwip-users] netconn_recv issue
hi,i can not find that you free the netbuf,it maybe result in your problem.
please insert "netbuf_delete(inbuf);" at last then try agin.I think maybe has
some change.
while( true )
{
netconn_new( conn );
...
writeErr = netconn_write( conn, &command, sizeof( command ),
NETCONN_COPY/*NETCONN_NOCOPY*/ );
...
if( (inBuf = netconn_recv( conn ) ) != NULL )
{
netbuf_data(inBuf,&data,&length);
}
netconn_close( conn );
netconn_delete( conn );
}
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users