private void cancelRequestTimeouts(Request request)
{
Timeout sendTimeout = request.getSendTimeout();
if (sendTimeout != null) {
sendTimeout.cancel();
}
Timeout responseTimeout = request.getReceiveTimeout();
if (responseTimeout != null) {
responseTimeout.cancel();