-
Notifications
You must be signed in to change notification settings - Fork 380
Sometimes "Couldn't read the packet length" under Linux (.Net Core) #1013
Comments
System.IO.IOException |
Can reproduce on Windows 10 19042.746 with .NET Core 5.0.102 and TLSharp version 0.1.0.574 (NuGet). EDIT: I assume this is due to .NET Core and .NET Framework incompatibilities |
Hi @novelhawk, @mightywill Couldn't read the packet length at TLSharp.Core.Network.TcpTransport.d__5.MoveNext() |
When I try to send message from Kestrel webserver under Linux that was some time in idle state(no requests) then a first two attempts fail with "Couldn't read the packet length" or "Broken pipe" but the 3rd and the following succeed
Couldn't read the packet length
System.InvalidOperationException
Couldn't read the packet length
at TlSharp.TLSharp.Core.Network.TcpTransport.Receive(CancellationToken token)
at TlSharp.TLSharp.Core.Network.MtProtoSender.Receive(TLMethod request, CancellationToken token)
at TlSharp.TLSharp.Core.TelegramClient.RequestWithDcMigration(TLMethod request, CancellationToken token)
at TlSharp.TLSharp.Core.TelegramClient.SendRequestAsync[T](TLMethod methodToExecute, CancellationToken token)
at TlSharp.TLSharp.Core.TelegramClient.SendAuthenticatedRequestAsync[T](TLMethod methodToExecute, CancellationToken token)
at TlSharp.TLSharp.Core.TelegramClient.GetUserDialogsAsync(Int32 offsetDate, Int32 offsetId, TLAbsInputPeer offsetPeer, Int32 limit, CancellationToken token)
The text was updated successfully, but these errors were encountered: