What does WARNING: Could only recv -1/8 first bytes from connection mean?
book
Article ID: KB0085335
calendar_today
Updated On:
Products
Versions
TIBCO SmartSockets
-
Not Applicable
-
Description
Resolution: When a SmartSocket connection is established, it has three stages.
1. Protocol Layer: TCP/IP level
2. Talarian Connection Layer: Conn_init level. This layer is on top of TCP/IP and involves the exchange of some initial information such as protocol version, real and int format, and so on.
3. Talarian Application Layer: Another layer on top of the Conn_init layer that exchanges additional application level information.
The calls for the second "conn_init" stage is blocking; when the RTserver is busy (during periods a heavy traffic or when a large number of RTclients are trying to connect at the same time) the handshaking will time out. To correct this problem (WARNING: Could only recv -1/8 first bytes from connection), add the following in the RTserver .cm file.
setopt _conn_init_timeout 40
Note that "40" is a recommended value. This value is a starting point; but the optimal value can only be determined empirically.
Issue/Introduction
What does WARNING: Could only recv -1/8 first bytes from connection mean?