lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re:[lwip-users] netconn_recv issue


From: Emmanuel Baguia Jr.
Subject: re:[lwip-users] netconn_recv issue
Date: Thu, 4 Dec 2008 00:00:18 -0800 (PST)

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 <address@hidden> wrote:
From: greencity <address@hidden>
Subject: re:[lwip-users] netconn_recv issue
To: address@hidden
Date: Thursday, December 4, 2008, 3:41 PM

 
----- Original Message -----
From: xiejh
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 );
}


reply via email to

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