lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] opening multiple sockets fails


From: Dennis Borgmann
Subject: Re: [lwip-users] opening multiple sockets fails
Date: Wed, 19 Oct 2011 11:44:28 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

Hi Simon,

thank you for your help on this. I check the errno when socket returns. The returnvalue of socket is "-1" and errno is not altered at all. If I set it to "1" prior to this command, it stays being "1" and if I don't initialize errno at all, it has the value "0". So, this can't be the correct errno of the socket call.

I will try to enhance memory later, but still, this does not seem to work the way it should.

Best regards,
Dennis


Am 19.10.2011 10:56, schrieb Simon Goldschmidt:
Dennis Borgmann<address@hidden>  wrote:
It seems like lwIP does not like this. As soon as I open more than one
socket, the return value of socket is negative.
a) A more detailed error number is saved in 'errno'. You should try to get that 
value somehow to see what's wrong (error numbers are defined in arch.h).
b) It could be that you just have configured available memory too low. In that case, 
available resources wouldn't allow you to create a 2nd socket. In that case, you should 
go through lwipopts.h and increase the some configuration options (see comments in opt.h 
and the lwip wiki - "http://lwip.wikia.com/wiki/Lwipopts.h"; - for an 
explanation).

Simon




reply via email to

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