[Top][All Lists]

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

Re: re:[lwip-users] netconn_recv issue

From: greencity
Subject: Re: re:[lwip-users] netconn_recv issue
Date: Thu, 4 Dec 2008 16:55:41 +0800

hi!i suggest you step debug in the netconn_recv() function so you can see where return NULL.by the way, i am porting lwip and ucos on luminary lm3s8962 and I have some problem. I have sent a mail to lwip-users.can you give me some tips? thank a lot
----- Original Message -----
Sent: Thursday, December 04, 2008 4:00 PM
Subject: re:[lwip-users] netconn_recv issue

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.

--- 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 ),
if( (inBuf = netconn_recv( conn ) ) != NULL )

netconn_close( conn );
netconn_delete( conn );

reply via email to

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