NetCoreServer icon indicating copy to clipboard operation
NetCoreServer copied to clipboard

SendRequest timeout in http client is not work

Open XiangbingZeng opened this issue 3 years ago • 1 comments

var res = client.SendRequest(req,new TimeSpan(0,0,3)); can not execute TimeoutHandler

XiangbingZeng avatar Jul 21 '21 01:07 XiangbingZeng

I'm having this same issue.

var tmpClient = new HttpClientEx(Address, Port);
var tmpResponse = tmpClient.SendRequest(request, TimeSpan.FromSeconds(2.0)).Result;

When the SendRquest method is called the timeout doesn't trigger.

RicardoOliveira avatar Jun 22 '22 09:06 RicardoOliveira