Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » skylark meet strange problem
skylark meet strange problem [message #46648] Tue, 21 June 2016 22:31 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
That ocurred randomly,it shows "Trying to start listening <other process using the same port>""
even though i changed the default port to the other,it still does`nt work.
Who has seen the problem? Embarassed
Re: skylark meet strange problem [message #46649 is a reply to message #46648] Tue, 21 June 2016 22:50 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi akabee,

Are you sure there is nothing else listening on that port? On Linux you can check with command like this: "netstat -ntlp | grep <port>".

From my experience, the most common cause for this is that I forget about an instance of my program I launched earlier Smile Or that I killed it improperly, so that some of the processes stay active and still listen on the port.

Best regards,
Honza
Re: skylark meet strange problem [message #46651 is a reply to message #46649] Wed, 22 June 2016 06:27 Go to previous messageGo to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
In fact i reboot the pc but it's still not working Crying or Very Sad
It is very annoying Sad Sad
Re: skylark meet strange problem [message #46652 is a reply to message #46651] Wed, 22 June 2016 07:13 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Have you tried that netstat command I posted? What port number do you use? Note that ports less then 1024 require extra permissions. So if you have a lower port, you would have tu run your application as root.

Honza
Re: skylark meet strange problem [message #46657 is a reply to message #46652] Fri, 24 June 2016 11:17 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
i tried, nothing use the port. my port bigger than 8000.
i found if i don't SetIniFile() then the "<other process using the same port>" gone.. but the config in IniFile do nothing with the port.
i will dig in a little deepe...
Previous Topic: Wait for other Threads
Next Topic: how many threads should i use in SkyLark server?
Goto Forum:
  


Current Time: Thu Mar 28 18:23:04 CET 2024

Total time taken to generate the page: 0.01290 seconds