U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » [SOLVED] TcpSocket Connect error
Re: TcpSocket Connect error [message #42544 is a reply to message #42425] Sun, 23 March 2014 17:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
I am sorry for the delay, I had to think this through....

I am afraid I would not be happy with this change as proposed. The problem is that one of aims of non-blocking sockets was ability to provide the fully asynchronous mode of operation, as e.g. demonstrated in reference/GuiWebCrawler, where a multitude of HttpRequests is running concurently, in single thread.

By adding Wait into Connect in this exact way, this would no longer be possible, as Connect would start waiting for the connection (would be now blocking).

That said, I understand that current behaviour is not quite correct too, I just do not see the 'right' solution here now....

Mirek
 
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: SSL handshake error
Next Topic: How to use Skylark on external server
Goto Forum:
  


Current Time: Sat May 16 02:59:15 GMT+2 2026

Total time taken to generate the page: 0.00648 seconds