You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2022/03/19 12:27:00 UTC
[jira] [Commented] (THRIFT-5499) Receive timeout not triggered when response exceeds timeout
[ https://issues.apache.org/jira/browse/THRIFT-5499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509260#comment-17509260 ]
Jens Geyer commented on THRIFT-5499:
------------------------------------
REOPEN: This actually breaks when used in a web scenario:
System.InvalidOperationException
HResult=0x80131509
Nachricht = Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
Quelle = Microsoft.AspNetCore.Server.IIS
Stapelüberwachung:
bei Microsoft.AspNetCore.Server.IIS.Core.HttpRequestStream.Read(Byte[] buffer, Int32 offset, Int32 count)
bei Microsoft.AspNetCore.Server.IIS.Core.WrappingStream.Read(Byte[] buffer, Int32 offset, Int32 count)
bei Thrift.Transport.Client.TStreamTransport.<>c__DisplayClass15_0.<ReadAsync>b__0() in E:\D\TPCPP\JGIT_0x5ADC\5GL\lib\3rdparty\Thrift-Trunk\netstd\Thrift\Transport\Client\TStreamTransport.cs: Zeile84
bei System.Threading.Tasks.Task`1.InnerInvoke()
bei System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
bei System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
> Receive timeout not triggered when response exceeds timeout
> -----------------------------------------------------------
>
> Key: THRIFT-5499
> URL: https://issues.apache.org/jira/browse/THRIFT-5499
> Project: Thrift
> Issue Type: Bug
> Components: netstd - Library
> Affects Versions: 0.15.0, 0.16.0
> Reporter: Plumet
> Priority: Major
> Attachments: THRIFT-ReceiveTimeout.zip
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When the client's timeout is set to valid value and the response exceeds this timeout there is no exception thrown.
> I've provided a reproducible testcase[^THRIFT-ReceiveTimeout.zip].
--
This message was sent by Atlassian Jira
(v8.20.1#820001)