Skip to content
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

Lost ZeroMQ messages #43

Closed
HelloZeroNet opened this issue Jan 29, 2015 · 2 comments
Closed

Lost ZeroMQ messages #43

HelloZeroNet opened this issue Jan 29, 2015 · 2 comments

Comments

@HelloZeroNet
Copy link
Owner

No idea why, but sometimes the getFile command response is lost in space:

[2015-01-29 17:52:32,391] DEBUG    src.File.FileServer FileRequest: update 1Gfey7wVXXg1rxk751TBTxLJwhddDNfcdp content.json
[2015-01-29 17:52:32,391] DEBUG    src.File.FileServer Someone trying to push a file to own site 1Gfey7wVXXg1rxk751TBTxLJwhddDNfcdp, reload local content.json first
[2015-01-29 17:52:32,507] DEBUG    src.File.FileServer Update for content.json looks valid, saving...
[2015-01-29 17:52:32,512] INFO     src.File.FileServer 1Gfey7..fcdp changed files: [u'messages.json']
[2015-01-29 17:52:32,513] DEBUG    Peer:104.xxx:15441 sendCmd: ping
[2015-01-29 17:52:32,515] DEBUG    Peer:104.xxx:15441 Sent command: ping
[2015-01-29 17:52:32,716] DEBUG    Peer:104.xxx:15441 Got response to: ping
[2015-01-29 17:52:32,717] DEBUG    Peer:104.xxx:15441 Ping: 0.203
[2015-01-29 17:52:32,717] DEBUG    Peer:104.xxx:15441 sendCmd: getFile
[2015-01-29 17:52:32,717] DEBUG    Peer:104.xxx:15441 Sent command: getFile
And its stops here, 20s later got the file from other peers, but not from this one

The socket is alive, because the ping command get the response, but the getFile response never arrives.

From server side everythiing looks allright:

[2015-01-29 17:52:31,207] DEBUG    src.File.FileServer FileRequest: ping None None
[2015-01-29 17:52:31,408] DEBUG    src.File.FileServer FileRequest: getFile 1Gfey7wVXXg1rxk751TBTxLJwhddDNfcdp messages.json
[2015-01-29 17:52:31,409] DEBUG    src.File.FileServer Opening file: data/1Gfey7wVXXg1rxk751TBTxLJwhddDNfcdp/messages.json
[2015-01-29 17:52:31,409] DEBUG    src.File.FileServer Sending file data/1Gfey7wVXXg1rxk751TBTxLJwhddDNfcdp/messages.json from position 0 to 86470
[2015-01-29 17:52:31,409] DEBUG    src.File.FileServer File data/1Gfey7wVXXg1rxk751TBTxLJwhddDNfcdp/messages.json sent

I think its mostly happens after my computer wakes from sleep.
Maybe the zeromq server side in not compeltely thread safe maybe its other problem.

Sooner or later i think we have to get rid of the zeromq (too much limitations), but would be nice to know whats the reason of this problem.

@HelloZeroNet
Copy link
Owner Author

Its getting worse as ZeroTalk requires more files. Working on new network code without zeromq. It will be out in 1-2 weeks.

@HelloZeroNet
Copy link
Owner Author

Its probably hw/router problem, there is a workaround in latest code for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant