/// <summary>
/// Called whenever the request timer ticks
/// </summary>
private void _requestTick(object state)
{
lock (_lock)
{
if (_state == ClientState.AwaitConfirmation)
{
_requestAttempt++;
if (_requestAttempt >= RequestAttempts)
{
// TODO: should probably be a timeout error instead of an abort
_handle.FeedAbort(AbortReason.Other);
_transitionTo(ClientState.Disposed);
}
else
{
_sendInitialRequestSegment();
}
}
}
}