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 » Bug with socket
Re: Bug with socket [message #31569 is a reply to message #31550] Tue, 15 March 2011 07:51 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

nlneilson wrote on Sun, 13 March 2011 12:51

App hangs, endless loop, CPU near 100% on one core.
This is only when the server is unavailable.
win32-3274

This can be duplicated with: C:\upp\reference\SocketClient
	Socket s;
	if(!ClientSocket(s, "127.0.0.1", 5024)) {


This is when compiled with Win XP with MSC9, 10 or Mingw
It runs OK in Win.

When running the app in Ubuntu 10.10 with Wine is when it hangs.

It took me more than 8 hours to track it down, much of that time
was spent looking for errors in my code.

Finally I was able to find that older versions of Upp worked OK.
Copying socket.cpp and socket.h from the older versions into the
latest (3274) worked also.

Checked to see where the problem started:
3226 and earlier OK
3233 and later it just hangs at, "if(!ClientSocket(s ...".
try/catch will not work either.

Neil




What about to try ZeroMQ library?
If you have the sourcecode I can convert it.
Best regards, Ion.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: XmlRpc: possible crash fixed
Next Topic: A new function to Web Package Unicode-Escape-Javascript -> Unicode
Goto Forum:
  


Current Time: Tue May 14 12:03:19 CEST 2024

Total time taken to generate the page: 0.01870 seconds