Exemple #1
0
        internal void PushTimeout(HttpClient client, Socket socket)
        {
            SocketTimeoutLink socketTimeout = this.socketTimeout;

            if (socketTimeout != null)
            {
                socketTimeout.Push(client, socket);
            }
        }
Exemple #2
0
        internal bool PushReceiveVerifyCommandTimeout(SocketTimeoutNode serverSocket, Socket socket)
        {
            SocketTimeoutLink receiveVerifyCommandTimeout = this.ReceiveVerifyCommandTimeout;

            if (receiveVerifyCommandTimeout != null)
            {
                receiveVerifyCommandTimeout.Push(serverSocket, socket);
                return(true);
            }
            return(false);
        }