You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
This is a program that implements devp2p subprotocol with rudimentary functionality. On established connection both endpoints send 100 messages with packet_id=1 to each other. When message with packet_id<6 is received, counter corresponding to this packet_id is increased and message with packet_id increased by one is sent back. If all messages are delivered (and pinger is written correctly) counters for all packet_id's in range 1..6 should be set to 100. Total of 1200 messages are being exchanged.
Other notes:
Please note that in every 1..N chain of messages only last message, numbered N is sometimes lost.
If sleeps are inserted and amount messages per second is small, no messages are being lost.
This code has been tested on Linux and OSX. Problem manifests only on Linux.
EDIT: fixed link and typoes
The text was updated successfully, but these errors were encountered:
(I've just started to learn Rust, so please be gentle)
Commit that contains the implementation of subprotocol and a test program:
paulperegud@6107e98
Branch: https://github.com/paulperegud/parity/tree/buggy-pinger
Code is based on tag v1.4.8
Full instruction on how to run: https://github.com/paulperegud/parity/blob/buggy-pinger/util/network/PINGER
This is a program that implements devp2p subprotocol with rudimentary functionality. On established connection both endpoints send 100 messages with packet_id=1 to each other. When message with packet_id<6 is received, counter corresponding to this packet_id is increased and message with packet_id increased by one is sent back. If all messages are delivered (and pinger is written correctly) counters for all packet_id's in range 1..6 should be set to 100. Total of 1200 messages are being exchanged.
Other notes:
EDIT: fixed link and typoes
The text was updated successfully, but these errors were encountered: