connection-timeout

HttpClient.PostAsJsonAsync never sees when the post is succeeding and responding

断了今生、忘了曾经 提交于 2021-02-07 11:28:36
问题 We are using an HttpClient to post json to a restful web service. In one instance, we are running into something that has us baffled. Using tools like postman, fiddler etc, we can post to an endpoint and see that it is working. When we do the same with HttpClient.PostAsJsonAsync, we can verify in the software we are posting to that it received the data just fine. However, our PostAsJsonAsync will always eventually time out rather than give us a response. We have worked with the team that

HttpClient executes requests multiple time if request timed out

不问归期 提交于 2021-02-07 03:14:44
问题 HttpClient executes request 4 times if it times out. If it does not time out then it is working fine. Is it related to HttpClient ? 回答1: I found that it is HttpClient 's default behaviour to execute requests 4 times if it fails. I am not sure about other kind of failures but at least with time out. To disable this behaviour do this : DefaultHttpClient client = new DefaultHttpClient(); // Disable default behavior of HttpClient of retrying requests in case of failure ((AbstractHttpClient)

HttpClient executes requests multiple time if request timed out

牧云@^-^@ 提交于 2021-02-07 03:14:41
问题 HttpClient executes request 4 times if it times out. If it does not time out then it is working fine. Is it related to HttpClient ? 回答1: I found that it is HttpClient 's default behaviour to execute requests 4 times if it fails. I am not sure about other kind of failures but at least with time out. To disable this behaviour do this : DefaultHttpClient client = new DefaultHttpClient(); // Disable default behavior of HttpClient of retrying requests in case of failure ((AbstractHttpClient)

Request Timed out with Code

最后都变了- 提交于 2021-01-28 07:25:33
问题 Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x608000244a70 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=http://www.dfdd, NSErrorFailingURLKey=http://www.dfdd.com, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.} Am getting this response calling MY API.. am using alamofire to call

Why does PHP ftp_connect fail when the server is running?

我只是一个虾纸丫 提交于 2021-01-28 06:59:00
问题 I've been trying to connect via FTP to my server for some time now and can't seem to get it to work. $connection_id = ftp_connect("example.com", 22); When running this code, it hangs for sometime until PHP eventually tells me the script has been executing for too long and quits. It does not fail and return FALSE. It just times out. My first instinct was that maybe the server was down, so I pinged it. The ping was successful and I didn't lose any packets. Then I tried using the same parameters

What is a connection timeout during a http request

对着背影说爱祢 提交于 2020-12-27 08:36:54
问题 I have found two explanations on "connection timeout": The server closes the socket connection when the client doesn't send any bytes to the server during [timeout] seconds. It appears to have some relation to HTTP header ( Connection: keep-alive ). The client stops attempting to connect to the server after [timeout] seconds if the socket connection was not established during that time. So I am confused about the definition. What is a connection timeout? What is the difference between a

What is a connection timeout during a http request

旧街凉风 提交于 2020-12-27 08:36:33
问题 I have found two explanations on "connection timeout": The server closes the socket connection when the client doesn't send any bytes to the server during [timeout] seconds. It appears to have some relation to HTTP header ( Connection: keep-alive ). The client stops attempting to connect to the server after [timeout] seconds if the socket connection was not established during that time. So I am confused about the definition. What is a connection timeout? What is the difference between a

Modify Hikari properties at runtime

自闭症网瘾萝莉.ら 提交于 2020-12-06 17:43:36
问题 Where can I find information about Hikari properties that can be modified at runtime? I tried to modify connectionTimeout . I can do it and it will be modified in the HikariDataSource without an exception (checked by setting and then getting the property) but it takes no effect. If I initially do: HikariConfig config = new HikariConfig(); config.setConnectionTimeout(12000); HikariDataSource pool = new HikariDataSource(config); and later on I do config.setConnectionTimeout(5000); Hikari tries

Modify Hikari properties at runtime

霸气de小男生 提交于 2020-12-06 17:42:09
问题 Where can I find information about Hikari properties that can be modified at runtime? I tried to modify connectionTimeout . I can do it and it will be modified in the HikariDataSource without an exception (checked by setting and then getting the property) but it takes no effect. If I initially do: HikariConfig config = new HikariConfig(); config.setConnectionTimeout(12000); HikariDataSource pool = new HikariDataSource(config); and later on I do config.setConnectionTimeout(5000); Hikari tries