keepAlive = true;
comet = false;
- long soTimeout = endpoint.getSoTimeout();
+ int soTimeout = endpoint.getSoTimeout();
if (disableKeepAlive()) {
socketWrapper.setKeepAliveLeft(0);
// Parsing the request header
try {
if( !disableUploadTimeout && keptAlive && soTimeout > 0 ) {
- socketWrapper.getSocket().getIOChannel().socket().setSoTimeout((int)soTimeout);
+ socketWrapper.getSocket().getIOChannel().socket().setSoTimeout(soTimeout);
}
if (!inputBuffer.parseRequestLine(keptAlive)) {
// Haven't finished reading the request so keep the socket