Hello List,

I am using the latest version of httpasynchclient to send six 13 MB files over 
a 10 MBPS link.
My timeout is set to 30 seconds, and I am getting timeout errors, in the 
following timeout handler:

    protected void timeoutCheck(final SelectionKey key, final long now) {
        final IOSessionImpl session = (IOSessionImpl) key.attachment();
        if (session != null) {
            final int timeout = session.getSocketTimeout();
            if (timeout > 0) {
                if (session.getLastAccessTime() + timeout < now) {
                    sessionTimedOut(session);
                }
            }
        }
    }

Setting my timeout to 2 minutes fixes these timeout errors:

        IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
                .setIoThreadCount(Runtime.getRuntime().availableProcessors())
                .setConnectTimeout(120000)
                .setSoTimeout(120000)
                .setTcpNoDelay(true)
                .build();


Is this reasonable to get timeout errors with a 30 second timeout?
Is there anything else I can configure to prevent a timeout?


Over 10 MBPS, each file should take about 15 seconds to send. But, since all 
files are being sent asynchronously,
is it true that each file may take a lot longer to send, since there are other 
concurrent sockets active?

Thanks very much,
Aaron




This e-mail may contain confidential and/or privileged information for the sole 
use of the intended recipient. 
Any review or distribution by anyone other than the person for whom it was 
originally intended is strictly prohibited. 
If you have received this e-mail in error, please contact the sender and delete 
all copies. 
Opinions, conclusions or other information contained in this e-mail may not be 
that of the organization.

Reply via email to