The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Commit 2116a68c authored by legoc's avatar legoc
Browse files

(split) In Server constructor, moved retrieval of server version in try/catch...

(split) In Server constructor, moved retrieval of server version in try/catch to avoid exception when there is a timeout
parent 064e19ed
......@@ -44,11 +44,11 @@ void Server::initServer(const Endpoint& endpoint, int timeoutMs) {
// Create the request socket. The server endpoint has been defined.
Services::initRequestSocket();
// Retrieve the server version.
Services::retrieveServerVersion();
// Manage the ConnectionTimeout exception that can occur.
try {
// Retrieve the server version.
Services::retrieveServerVersion();
// Start the event thread.
unique_ptr<EventStreamSocket> socket = openEventStream();
m_eventThread.reset(new EventThread(this, socket));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment