Fedora Linux Support Community & Resources Center
  #1  
Old 1st November 2011, 01:03 AM
mdberger Offline
Registered User
 
Join Date: Oct 2011
Posts: 61
windows_xp_2003firefox
localhost udp: address in use

I have some complex multi-thread code in which I do
some internal signaling with udp sockets:
snd: 127.0.0.1:6501
rcv: 127.0.0.1:6502

On my new F15_64 box, I usually get:
errno=98=Address already in use
in response to the bind command when I bring up the snd
socket (which is first up) even when I just come up from
power off.

Rarely, it works. I think that it is after I have been
doing nothing, but with the box running, for a while.
I'm not sure.

Now on my old CentOS 5_32 box, the same code
(but, of course, compiled for 32) works with no
problem. I can start and stop it rapidly with no
problem.

(BTW, this does not account for the problem I
mentioned in my thread on starting SysV daemons
on boot.)

Thanks for your suggestions.
Mike.
Reply With Quote
  #2  
Old 1st November 2011, 01:45 AM
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,272
linuxfirefox
Re: localhost udp: address in use

Have you tried asking on the Users mailing list?

https://admin.fedoraproject.org/mailman/listinfo

I think you're more likely to get the attention of a technical expert there.
Reply With Quote
  #3  
Old 1st November 2011, 02:23 AM
mdberger Offline
Registered User
 
Join Date: Oct 2011
Posts: 61
windows_xp_2003firefox
Re: localhost udp: address in use

Thanks, I just posted it there.

BTW, my opinion that when it works, it does so because
I left it alone for a while, is not correct. I can see no pattern.

Mike.
Reply With Quote
  #4  
Old 1st November 2011, 07:05 PM
mdberger Offline
Registered User
 
Join Date: Oct 2011
Posts: 61
windows_xp_2003firefox
Re: localhost udp: address in use

This turned out to be a coding problem uncovered
by migrating to a much faster box.
Briefly, the initial call to the getInstance()
of a singleton was not complete before a
second, higher priority call was issued.

Sorry for the distraction.
Mike.
Reply With Quote
Reply

Tags
address, localhost, udp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
squirrelmail user email address with "@localhost" powereds Using Fedora 1 10th June 2006 02:39 PM
Need solution for the error "Localhost as not assigned an address in /etc/hosts" jaga Servers & Networking 3 13th December 2005 03:22 AM
How to change apache email address apache@localhost to admin@proporta.lk niloshima Servers & Networking 2 17th November 2005 11:36 AM


Current GMT-time: 03:59 (Friday, 25-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat