(add) Re: [En-Nut-Discussion] NutUdpSendTo doesn't return

Ulrich Hertlein ulrich.hertlein at artcom.de
Fri Sep 9 14:53:49 CEST 2005


Harald Kipp wrote:
>> One thing I just noticed:
>> - when I call the NetUdpSendTo function from the main thread (the one 
>> that's running the TCP server) it works
>> - when I call it from the other thread it hangs
> 
> There had been an ARP bug in 3.9.7. Version 3.9.8 fixes this.

Unfortunately I'm already using 3.9.8 :-/

>> Do I have to take some precaution about thread safety with networking?
> 
> No, you can even use the same socket in different threads.

That's what I thought, it shouldn't be an issue with co-operative MT.
Unfortunately I can recreate the problem pretty reliably...

/Ulrich

-- 
Ulrich Hertlein | Software Development

ART+COM AG
Kleiststr. 23-26 | 10787 Berlin | Germany

phone: +49.30.21001-433
fax: +49.30.21001-555
http://www.artcom.de



More information about the En-Nut-Discussion mailing list