private void oneway(RpcClient client, RpcServer server) {
        RequestBody b2 = new RequestBody(2, RequestBody.DEFAULT_ONEWAY_STR);
        try {
            if (null == server) {
                client.oneway(addr, b2);
            } else {
                Connection conn = client.getConnection(addr, 1000);
                Assert.assertNotNull(serverConnectProcessor.getConnection());
                Connection serverConn = serverConnectProcessor.getConnection();
                server.oneway(serverConn, b2);
            }
            Thread.sleep(50);
        } catch (RemotingException e) {
            logger.error("Exception caught in oneway!", e);
            Assert.fail("Exception caught!");
        } catch (InterruptedException e) {
            logger.error("InterruptedException in oneway", e);
            Assert.fail("Should not reach here!");
        }
    }
the second request will timeout in work queue
src/test/java/com/alipay/remoting/rpc/timeout/ServerTimeoutSwitchTest.java