zoukankan      html  css  js  c++  java
  • HTTP 超时

      TWinHTTPTimeouts = class(TPersistent)
      private
        FConnectTimeout, FReceiveTimeout, FSendTimeout: DWord;
      public
        procedure Assign(Source: TPersistent); override;  
      published
        property ConnectTimeout: DWord read FConnectTimeout write FConnectTimeout default 0;
        property ReceiveTimeout: DWord read FReceiveTimeout write FReceiveTimeout default 0;
        property SendTimeout: DWord read FSendTimeout write FSendTimeout default 0;
      end;

    Applies to 

      WinHTTP component.  
       


    Declaration 

      property WaitTimeout: Integer;  
       


    Description 

      The WaitTimeout property specifies the time interval (limit), in milliseconds unit, which application able to wait until the HTTP request will be completed.  
       
      For example, if the maximum time which you can allow to complete HTTP request is 5 seconds, set this value to 5000 (milliseconds). If application can wait infinitely, set WaitTimeout to 0.  
       
      iiinfo When the timeout is expired, the component automatically terminates the HTTP request. To be notified when the WaitTimeout is expired — write OnWaitTimeoutExpired event handler.  
       


    Notes 

      The WaitTimeout only works together with WaitThread property, only when it set to True.  
       


    See also 

      WaitThreadThreadThreadPriority and Suspended properties;  
      Read and Abort methods;  

      OnWaitTimeoutExpired event.  
  • 相关阅读:
    面试题39:二叉树的深度、判断二叉树是不是平衡
    Bridge 桥接
    Adapter 适配器
    search_request.go
    scoring_criteria.go
    index_init_oprions.go
    index.go
    engine_init_options.go
    document_index_data.go
    util.go
  • 原文地址:https://www.cnblogs.com/CodeGear/p/5966073.html
Copyright © 2011-2022 走看看