Home » U++ Library support » U++ MT-multithreading and servers » Bug with socket
Bug with socket [message #31550] |
Sun, 13 March 2011 11:51 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
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
|
|
|
|
|
Bug with socket
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
By: tojocky on Tue, 15 March 2011 07:51
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
By: tojocky on Thu, 17 March 2011 09:21
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 11:15
|
|
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 12:44
|
|
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 14:50
|
|
|
Re: Bug with socket
By: mirek on Fri, 18 March 2011 19:39
|
|
|
Re: Bug with socket
By: mirek on Fri, 18 March 2011 20:30
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
By: mirek on Sat, 19 March 2011 23:50
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
By: mirek on Sun, 20 March 2011 07:50
|
|
|
Re: Bug with socket
|
|
|
Re: Bug with socket
By: tojocky on Sun, 20 March 2011 10:50
|
|
|
Re: Bug with socket
By: mirek on Sat, 16 April 2011 21:26
|
|
|
Re: Bug with socket
By: tojocky on Sun, 17 April 2011 13:40
|
|
|
Re: Bug with socket
|
Goto Forum:
Current Time: Fri May 10 00:02:15 CEST 2024
Total time taken to generate the page: 0.03742 seconds
|