Comments (9)
First attempt: Before sending a recovery request, wait 0-0.25s
This may give enough delay to work correctly.
from p2p-project.
This seems to work (on localhost) ~2/3 times on python3.5.
Not good enough.
Next approach:
If connection was outgoing, wait 0.25s to send recovery request.
from p2p-project.
Again, seems to work 2/3 times.
Next approach:
Only send recovery request if your connection was outgoing. You accept incoming connections indiscriminately, so it's up the one reaching out to repair things.
from p2p-project.
This fails on SSL and Plaintext. Not a good solution. Strangely seems to work under plain disconnect, though, which seems to indicate that it matters whether it's in a routing table.
Pastebin of output in case this becomes relevant again
from p2p-project.
Rerunning the test, this time flagging both outputs, crash test succeeds, disconnect test fails. This is odd.
from p2p-project.
Moving this flag check makes one or the other fail, every time, it seems. So the question becomes, what's the root cause of SSL failing but not Plaintext?
from p2p-project.
To be clear about this, the method that I'm changing is mesh_daemon.mainloop
from p2p-project.
Possibly fixed in bbaaed5, though for the life of me I don't know why.
from p2p-project.
Yeah, it didn't fix it on any system but my own, and I don't understand why it worked on mine.
from p2p-project.
Related Issues (20)
- Define Maia grammars for messages HOT 4
- Switch serialization to msgpack HOT 1
- EventEmitter API Support HOT 1
- Investigate type hinting support
- Add support for FordSocket HOT 1
- Refactor class names
- Fragment Python files
- Update documentation
- WebExtension for networking improvements on the browser
- Add ChordSocket.lock(key) and ChordSocket.unlock(key) HOT 1
- Implement Python Websocket Support HOT 1
- Long Term: Reorganize Repository HOT 2
- Investigate invalid messages during bootstrap HOT 1
- Update contribution section
- Support UDP? HOT 2
- is this project similar to: pyp2p ? HOT 4
- Bug: pip install (python) HOT 3
- Automatically finding Nodes HOT 1
- RuntimeError: Set changed size during iteration HOT 5
- How to do NAT traversal ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2p-project.