-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
message.reply appears to not find connection #91
Comments
I don't see where the bug is showing up in |
Looks like a bug on the Javascript side of things. It's got a buffer full of data and isn't processing it. Seems like my callback scheme needs a while loop somewhere in there. |
Adding a while loop seems to have fixed the problem in the short term, but I'm getting some socket errors now that I don't know how to trace back. I'm going to push this commit for now, but this is only part of a bugfix |
Specifically I get: > Error: Error: write EPIPE
Error: Error: write after end |
It's totally possible this was a one-off though, because I've tested this fix four times and only gotten the issue once. Unfortunately I didn't have debug text turned on at the time so I couldn't trace it down more specifically. I really need to get a logging method on this... |
Appears to be disconnecting because of a bug in the handshake code. Javascript implementation appears to not be sending the protocol id in some instances. Obviously it's sending it in some because it couldn't connect to the network at all otherwise, but it's also getting it wrong sometimes. This will be moved to a new issue. |
It's unclear whether this is a bug in the javascript or python implementation. maybe both.
Steps to replicate:
Use the following python script to generate 8 nodes:
Then, in a nodejs instance, run the following:
Over in python-land, find a node not directly connected to conn, and call:
This should print a message about how the throughput is not guaranteed.
Problem is, it should be working. I know that python makes the request, because it uncovered a Javascript bug. But it's not making the connection afterwards.
My two theories are:
connect
isn't letting it override the max connection limitIf it's the first one, the bug will be present in both implementations.
if it's the second one, then I'm not sure.
The text was updated successfully, but these errors were encountered: