made sure the request timeout configuration is resolved from the context
@@ -45,12 +45,14 @@ public abstract class OChannelBinary extends OChannel implements OChannelDataInp
private final int maxChunkSize;
public DataInputStream in;
public DataOutputStream out;
+ private int responseTimeout;
public OChannelBinary(final Socket iSocket, final OContextConfiguration iConfig) throws IOException {
super(iSocket, iConfig);
maxChunkSize = iConfig.getValueAsInteger(OGlobalConfiguration.NETWORK_BINARY_MAX_CONTENT_LENGTH) * 1024;
debug = iConfig.getValueAsBoolean(OGlobalConfiguration.NETWORK_BINARY_DEBUG);
+ responseTimeout = iConfig.getValueAsInteger(OGlobalConfiguration.NETWORK_REQUEST_TIMEOUT);
if (debug)
OLogManager.instance().info(this, "%s - Connected", socket.getRemoteSocketAddress());
@@ -366,6 +368,6 @@ public abstract class OChannelBinary extends OChannel implements OChannelDataInp
public void setWaitResponseTimeout() throws SocketException {
final Socket s = socket;
if (s != null)
- s.setSoTimeout(OGlobalConfiguration.NETWORK_REQUEST_TIMEOUT.getValueAsInteger());
+ s.setSoTimeout(responseTimeout);
}
}
