Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.12.0
-
None
Description
THttpTransport.cs (netstd) and THttpClientTransport (netcore) have the same identical and badly written timeout configuration code.
- the code is using Timespan.FromSeconds(), yet the coder wants the variable to be using milliseconds
- the timeout is permanently set to the class initialized value since the timeout is only used within constructor, rendering the property useless
Incidentally, there's no way to configure timeout except for using reflection.
Also, if the ConnectTimeout property is NOT readable, how can people determine what's used for the timeout? It should be readable too.
Attachments
Issue Links
- causes
-
THRIFT-5236 THttpTransport.cs still has bad timeout code
- Closed
- links to