Bug 1273314

Summary: Cannot set socketTimeout lower than 1000 in C++ client
Product: [JBoss] JBoss Data Grid 6 Reporter: Osamu Nagano <onagano>
Component: CPP ClientAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Alan Field <afield>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5.1CC: afield, mgencur, ttarrant
Target Milestone: ER1   
Target Release: 6.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
cpphotrodclient.zip none

Description Osamu Nagano 2015-10-20 08:15:53 UTC
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.

Comment 1 Osamu Nagano 2015-10-20 08:16:48 UTC
Created attachment 1084649 [details]
cpphotrodclient.zip

Comment 3 JBoss JIRA Server 2015-10-28 10:15:42 UTC
Tristan Tarrant <ttarrant> updated the status of jira HRCPP-201 to Coding In Progress

Comment 8 Alan Field 2015-11-06 20:15:30 UTC
Verified in JDG 6.6.0 ER1