[En-Nut-Discussion] anyone had probs with setting SO_RCVTIMEO causing lockups?

Damian Slee damian at commtech.com.au
Wed Sep 17 07:29:50 CEST 2003


Turned out to be a really wierd problem with a call to memcpy_P() in my code.  
Despite using it else where in the same thread, this instance caused strange problems.

Replaced it with two _LPM() calls, and I am not having the problem now?

Using GCC 3.3.

-----Original Message-----
From: Harald Kipp [mailto:harald.kipp at egnite.de]
Sent: Tuesday, 16 September 2003 5:41 PM
To: en-nut-discussion at egnite.de
Subject: Re: [En-Nut-Discussion] anyone had probs with setting
SO_RCVTIMEO causing lockups?


Damian,

We are using socket timeouts in most of our own applications.

Because of a bug in timer handling, make sure to keep the timeout
above 62 millisecs. This is also true for NutSleep().

90% of lockups are caused by loops without NutThreadYield().

(Just in case: If you are calling input or NutSleep() functions
in your loop, NutTreadYield() is not required.)

Harald

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion



More information about the En-Nut-Discussion mailing list