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
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'to')
at System.Net.Http.Headers.RangeItemHeaderValue..ctor(Nullable'1 from, Nullable'1 to)
at System.Net.Http.Headers.RangeHeaderValue..ctor(Nullable'1 from, Nullable'1 to)
at MonoTorrent.Connections.Peer.HttpPeerConnection.ReceiveAsync(Memory'1 socketBuffer) in MonoTorrent.Client\MonoTorrent.Connections\HttpPeerConnection:cs
...
This is a consequence of the fact that HttpPeerConnection.SendAsync(Memory<byte> socketBuffer) receives non-sequential data.
In ConnectionManager.TryProcessQueue(TorrentManager manager, peerID id), messages from the queue are dequeuing sequentially, but when several threads exist in parallel, this data can be transferred to PeerIO.SendMessageAsync() with an order violation.
SocketPeerConnection has similar issues
This problem can be fixed by prohibiting asynchronous retrieval from the message queue, but this will slightly affect performance
The text was updated successfully, but these errors were encountered:
The following occurs quite often
This is a consequence of the fact that
HttpPeerConnection.SendAsync(Memory<byte> socketBuffer)
receives non-sequential data.In
ConnectionManager.TryProcessQueue(TorrentManager manager, peerID id)
, messages from the queue are dequeuing sequentially, but when several threads exist in parallel, this data can be transferred toPeerIO.SendMessageAsync()
with an order violation.SocketPeerConnection
has similar issuesThis problem can be fixed by prohibiting asynchronous retrieval from the message queue, but this will slightly affect performance
The text was updated successfully, but these errors were encountered: