Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upNetRender doesn't connect with localhost #258
Comments
buddhi1980
added
BUG
REPRODUCIBLE
SEVERE
labels
Feb 26, 2017
added a commit
that referenced
this issue
Feb 27, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zebastian
Feb 27, 2017
Collaborator
i found a problem, which probably caused this behaviour:
The client tries to reconnect to the server, as long as it is not in the state QAbstractSocket::ConnectedState.
see: void CNetRender::TryServerConnect()
If the client is already trying to connect to the server, it should do nothing (since the establishing of the connection may take longer than 1 second). If it is not already connecting, it should reset the socket and start a connection, which effectively should only be run once at the beginning, or while the server is unreachable.
The problem is: client recognized only the "ConnectingState" as the pending state, but there is also a HostLookupState which also resolves to an "establishing connection state"
If this takes too long (even on localhost i could reprodouce this) the socket gets resetted every second before it can finish the lookup, hence the error log.
Adding HostLookupState as a "wait for result" state seems to fix the problem, see commit: b8eb297
|
i found a problem, which probably caused this behaviour: The client tries to reconnect to the server, as long as it is not in the state QAbstractSocket::ConnectedState. If the client is already trying to connect to the server, it should do nothing (since the establishing of the connection may take longer than 1 second). If it is not already connecting, it should reset the socket and start a connection, which effectively should only be run once at the beginning, or while the server is unreachable. The problem is: client recognized only the "ConnectingState" as the pending state, but there is also a HostLookupState which also resolves to an "establishing connection state" Adding HostLookupState as a "wait for result" state seems to fix the problem, see commit: b8eb297 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Works perfect! Thanks! |
buddhi1980
closed this
Feb 27, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
CCV54
Mar 2, 2017
Yep, thanks zebastian! Fixed my problem, as mentioned by buddhi1980 - http://www.fractalforums.com/bug-reporting-b231/version-2-10-clients-crashing/ - and a little more.
CCV54
commented
Mar 2, 2017
|
Yep, thanks zebastian! Fixed my problem, as mentioned by buddhi1980 - http://www.fractalforums.com/bug-reporting-b231/version-2-10-clients-crashing/ - and a little more. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mclarekin
Mar 2, 2017
Collaborator
|
@ zebastian. Note the Gamepad comment and another minor bug comment from
CCV's post today.
*About the slow loading on Client end:Turns out, it was my fault due to
copying the already extracted mandelbulber2-win64-2.10 file from my Server
machine to Clients.After I copied the Zip file instead and extracted the
contents in place, the (newly created) Desktop shortcut works
fine.Excellent work, people, and thank you all very much. [image: A Beer
Cup] [image: A Beer Cup] [image: A Beer Cup]The thing about Gamepad:I
wonder.. Does it need to be enabled, by default, at launch? Might there be
some way to choose whether it is or it isn't?And, another minor bug:Clients
are often displayed as READY - on both ends - and I find it takes some
various fiddling to get them to show as WORKING.It happens that, the few
times I checked and despite what the display says, the client is actually
working. [image: huh?]*
…On Thu, Mar 2, 2017 at 5:37 PM, CCV54 ***@***.***> wrote:
Yep, thanks zebastian! Fixed my problem, as mentioned by buddhi1980 -
http://www.fractalforums.com/bug-reporting-b231/version-2-
10-clients-crashing/ - and a little more.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#258 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMLZHLexVJQIhuWiZLio5sgbP3mcKaCeks5rhkeQgaJpZM4MMdiF>
.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
buddhi1980
Mar 2, 2017
Owner
gamepad messages under Windows come from different versions of QtGamepad (5.8) and QtCore (5.7).
|
gamepad messages under Windows come from different versions of QtGamepad (5.8) and QtCore (5.7). |
buddhi1980 commentedFeb 26, 2017
System information (version)
Detailed description
When client is on the same machine as server then there is generated connection error
Similar error was reported here: http://www.fractalforums.com/bug-reporting-b231/version-2-10-clients-crashing/new/?topicseen#new
Steps to reproduce
start NetRender server and client on the same machine and try connect them together.