Artur Litau

Results 9 comments of Artur Litau

Hi, I have one solution (tested) In DarkRiftWriter.cs change function `public void Write(string[] value)` to ``` public void Write(string[] value) { buffer.EnsureLength(Position + 4); //Encodings suck, just do this manually...

Im not able to do a pull request. But I've fixed it on my fork. See changes at BichannelListenerBase.cs https://github.com/xAL95/DarkRift/commit/4c288f1e45e04ac019372e6766315f3dd4f1d5c7#diff-a6d48fdd9f19645763e90587b1c2de3b4300c5aae96d4ac9006c68b4c4d95ac6 What caused the issue? `Timer = new System.Threading.Timer(ConnectionTimeoutHandler, token, 5000,...

Hi, the issue is that there seems to be a race. If you do System.Threading.Thread.Sleep(5000); above the BichannelClientConnection.cs `udpSocket.Send(buffer);` Then sometimes you'll see ![Untitled](https://user-images.githubusercontent.com/111229021/185627850-89791cf7-f791-4fb8-96b4-b67e981c0ca4.jpg) As you see in the console...

So the solution right now which I have is: use timer: `Timer = new System.Threading.Timer(ConnectionTimeoutHandler, token, 5000, Timeout.Infinite)` ``` private void ConnectionTimeoutHandler(object token) { EndPoint remoteEndPoint = CancelPendingTcpConnection((long)token, out bool...

You can try this fork from me https://github.com/xAL95/DarkRift Im using it with unity.

> Hm i'd like to but i am using the UnityClient from the main Repo and that is not compatible with your current version for some reason/is not contained in...

CompatibilityBichannelListener is outdated. You can't mix main repo with my repo because I did some deep changes. Check darkrift logs. Maybe disconnect because of too many strikes?

Just tested and it seems to be fixed? I do not get any error.

Hi, inside DarkRift.Client we also have a MessageBuffer not getting disposed. The code: DarkRiftClient.cs ``` public bool SendMessage(Message message, SendMode sendMode) { if (message.IsPingMessage) RoundTripTime.RecordOutboundPing(message.PingCode); return Connection.SendMessage(message.ToBuffer(), sendMode); } ```...