我使用的HttpClient 4.1.2。如果我做一個連接到特定的主機XYZ並保持 超過5運行客戶端程序,以6小時,連接到同一個主機XYZ開始給: org.apache.http.conn.ConnectTimeoutException: Connect to XYZ timed out
at
org.apache.http.conn.ssl.SSLSocketFactory.con
嗨我收到錯誤Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding。 我alredy更改連接timeout = 60000和數據庫我的過程是在43秒執行。所以PLZ給我一些完美的解決方案 謝謝
我正在使用mysql(5.1)ruby(1.8.7)連接器從數據庫中提取一些數據。有些查詢的運行時間比預期的要長,所以我想在這些設置上設置連接超時。由related post提出了一種解決方案是: require 'rubygems'
require 'mysql'
# connect to the database
db = Mysql.real_connect('server', 'u