Code Monkey home page Code Monkey logo

Comments (5)

textaligncenter avatar textaligncenter commented on May 28, 2024 3

Now I can no longer reproduce the logged error...
The deviating keys problem is still reproducible and it does not recover at all - at least not within 3 hours

from rosenpass.

textaligncenter avatar textaligncenter commented on May 28, 2024 1

it works, thx

from rosenpass.

koraa avatar koraa commented on May 28, 2024

Hi there, thank you for reporting this!

Good to see somebody is using outfile :)

[2023-04-10T13:23:10Z ERROR rosenpass] unexpected error after processing 0 messages: Operation not permitted (os error 1) disabled backtrace

I am not sure what causes this error. You may be able to debug by setting env variable RUST_BACKTRACE=1.

I think it is because both peers know the endpoint of the other and initiate the key exchange at the same time, which would also explain the error messages and that the first 2 exchanges run within 3 seconds.

If you keep it running, how long does it take for RP to recover? Does it recover at all?

from rosenpass.

koraa avatar koraa commented on May 28, 2024

I can confirm that this happens; was able to reproduce. @textaligncenter thank you for reporting.

Anyone running into this issue: As @textaligncenter mentioned, specifying endpoint on only one peer seems to work around this issue for now.

It looks a lot like some sort of race condition involving retransmission handling; I keep seeing key outputs in quick succession. Normally it should take minutes between each output. Both peers keep specifying the same – mismatched – key. Occasionally I see the respective other key being used by a client but the key quickly gets overwritten by the other one. On both sides…

Ftr: Here is what I use to test:

./target/debug/rosenpass exchange private-key ~/tmp/k1/pqsk public-key ~/tmp/k1/pqpk listen 127.0.0.1:11000 verbose peer public-key ~/tmp/k2/pqpk endpoint 127.0.0.1:9999 outfile ~/tmp/osk1 | ts | while read -r l; do echo "$l $(cat ~/tmp/osk1)"; done | tee ~/tmp/log1
./target/debug/rosenpass exchange private-key ~/tmp/k2/pqsk public-key ~/tmp/k2/pqpk listen 127.0.0.1:9999 verbose peer public-key ~/tmp/k1/pqpk outfile ~/tmp/osk2 | ts | while read -r l; do echo "$l $(cat ~/tmp/osk2)"; done | tee ~/tmp/log2
./target/debug/rosenpass exchange private-key ~/tmp/k2/pqsk public-key ~/tmp/k2/pqpk listen 127.0.0.1:9999 verbose peer public-key ~/tmp/k1/pqpk endpoint 127.0.0.1:11000 outfile ~/tmp/osk2 | ts | while read -r l; do echo "$l $(cat ~/tmp/osk2)"; done | tee ~/tmp/log2

from rosenpass.

koraa avatar koraa commented on May 28, 2024

Could you give #78 a try @textaligncenter ?

from rosenpass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.