Red Hat Bugzilla – Bug 1273314
Cannot set socketTimeout lower than 1000 in C++ client
Last modified: 2018-01-29 20:46:19 EST
Description of problem: If you set ConfigurationBuilder.socketTimeout(999), the client fails to connect to the server. Here is a debug log for ping operation. socketTimeout(1000) works without errors. ~~~ TRACE [Socket.cpp:107] Trying to connect to 127.0.0.1 (127.0.0.1). DEBUG [ConnectionPool.cpp:133] Ensuring idle connection limits DEBUG [ConnectionPool.cpp:138] Testing idle connections DEBUG [Socket.cpp:134] Attempting connection to 127.0.0.1:11222 DEBUG [Socket.cpp:184] Connected to 127.0.0.1:11222 TRACE [PingOperation.cpp:27] Executing Ping TRACE [TcpTransportFactory.cpp:130] Initial ping has thrown an exception when pinging 127.0.0.1:11222 : timeout (host: 127.0.0.1 port: 11222) Resource temporarily unavailable ~~~ Version-Release number of selected component (if applicable): JDG 6.5.1 RHEL 6.6, 7.1 Steps to Reproduce: $ sudo yum install lua-devel $ unzip cpphotrodclient.zip $ cd cpphotrodclient $ vi Makefile # modify the path of HOTROD_DIST $ make runlib Additional info: connectionTimeout seems to work with 999.
Created attachment 1084649 [details] cpphotrodclient.zip
Tristan Tarrant <ttarrant@redhat.com> updated the status of jira HRCPP-201 to Coding In Progress
Verified in JDG 6.6.0 ER1