[
https://issues.apache.org/jira/browse/THRIFT-5499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509260#comment-17509260
]
Jens Geyer edited comment on THRIFT-5499 at 3/19/22, 12:32 PM:
---------------------------------------------------------------
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 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)
was (Author: jensg):
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)