Jon Cinque
|
b1340d77a2
|
sdk: Make Packet::meta private, use accessor functions (#29092)
sdk: Make packet meta private
|
2022-12-06 12:54:49 +01:00 |
behzad nouri
|
9a57c64f21
|
patches clippy errors from new rust nightly release (#27996)
|
2022-09-22 22:23:03 +00:00 |
sakridge
|
8c39648ec6
|
Give some tolerance to recv_mmsg test (#25299)
|
2022-05-19 18:54:39 +02:00 |
behzad nouri
|
379feecae5
|
patches bug in recv_mmsg when npkts != nrecv
If recv_mmsg receives 2 packets where the first one is filtered out,
then it returns npkts == 1:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/recvmmsg.rs#L104-L115
But then streamer::packet::recv_from will erroneously keep the 1st
packet and drop the 2nd one:
https://github.com/solana-labs/solana/blob/01a096adc/streamer/src/packet.rs#L34-L49
To avoid this bug, this commit updates recv_mmsg to always return total
number of received packets. If socket address cannot be correctly
obtained, it is left as the default value which is UNSPECIFIED:
https://github.com/solana-labs/solana/blob/01a096adc/sdk/src/packet.rs#L145
|
2022-01-04 21:06:59 +00:00 |
behzad nouri
|
4b24499916
|
removes total-size from return value of recv_mmsg
|
2022-01-04 21:06:59 +00:00 |
Michael Vines
|
b8837c04ec
|
Reformat imports to a consistent style for imports
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
|
2021-12-03 09:19:13 -08:00 |
Jack May
|
1078c86100
|
Streamer test is linux only, remove warnings on not-linux (#9274)
automerge
|
2020-04-02 18:02:49 -07:00 |
sakridge
|
b0c83921be
|
Move streamer test to integration test (#9050)
Failing in the coverage build.
|
2020-03-24 11:39:36 -07:00 |