Rogue Wave Server 5.5 and 5.4 Release Notes > New Global Functions
 
New Global Functions
The following global functions have been added:
*void SetIlsTcpUseRecvTimeout(IlsBoolean useRecvTimeout, IlsTime recvTimeout)
useRecvTimeout: IlsTrue to use the recv timeout. IlsFalse otherwise.
recvTimeout: define the recv timeout if useRecvTimeout is IlsTrue
When a network failure occurs during reception of a buffer, the ::recv socket operation may block without returning an error. A ::select() call has been added to the MvTCP library, before any call to ::recv, to work around this behavior. You can change the behavior by a call to this function.
The default behavior when such an error is detected is to close the corresponding connection. This behavior is controlled by the method IlsMvProcess::DisconnectOnComError() which is, by default, set to true.
See also: ILS_TCP_USE_RECV_TIMEOUT and ILS_TCP_RECV_TIMEOUT
*void SetIlsTcpSendPacketSize(unsigned int size)
void SetIlsTcpRecvPacketSize(unsigned int size)
size: size of the packet to be received or sent
In some cases, Microsoft Windows® socket layer generates a 10055 or 10054 error when receiving large buffers (64 Mo).
These functions are respectively defining the size of the packets when sending on a socket and the size of the packets when receiving from a socket.
 
Note: The Microsoft recommended value for packets size sent into a socket is 4 Mo.
See also ILS_TCP_PACKET_SIZE, ILS_TCP_SEND_PACKET_SIZE and ILS_TCP_RECV_PACKET_SIZE.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.