// Token: 0x060004DC RID: 1244 RVA: 0x0001ADF8 File Offset: 0x00018FF8 protected override bool HandleBackEndCalculationException(Exception exception, AnchorMailbox anchorMailbox, string label) { HttpProxyException ex = exception as HttpProxyException; if (ex != null && ex.ErrorCode == 3009) { HttpException exception2 = new HttpException(302, E4eProxyRequestHandler.GetErrorUrl(E4eProxyRequestHandler.E4eErrorType.OrgNotExisting)); return(base.HandleBackEndCalculationException(exception2, anchorMailbox, label)); } return(base.HandleBackEndCalculationException(exception, anchorMailbox, label)); }
protected override byte[] GetUpdatedBufferToSend(ArraySegment <byte> buffer) { if (!this.isConnecting) { return(null); } if (RpcHttpPackets.IsConnA3PacketInBuffer(buffer)) { this.endTime = new ExDateTime?(ExDateTime.Now + this.connectTimeout); } if (RpcHttpPackets.IsConnC2PacketInBuffer(buffer)) { this.isConnecting = false; this.endTime = null; } if (RpcHttpPackets.IsPingPacket(buffer) && this.endTime != null && ExDateTime.Now >= this.endTime.Value) { Exception ex = new HttpProxyException(HttpStatusCode.InternalServerError, HttpProxySubErrorCode.RpcHttpConnectionEstablishmentTimeout, "Outbound proxy connection timed out"); throw ex; } return(null); }