[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Re: tx badnwidth
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] Re: tx badnwidth |
Date: |
Wed, 04 Mar 2009 14:32:39 +0000 |
On Wed, 2009-03-04 at 09:27 -0500, Chen wrote:
> char dummy_data[2048];
> total=10000000;
> count=0;
> do{
> l=lwip_send(clientfd, dummy_data,payloadsize, 0);
> count =count+l;
> }while (count<total)
Can you check that lwip_send is not returning an error? The value
returned by lwip_send will either be the size sent if l > 0, or an error
if l < 0. This could explain why things go badly wrong for you.
Kieran