Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UserTimeout (0.1 sec)

  1. internal/http/listener.go

    	Trace       func(msg string) // Trace when starting.
    }
    
    // ForWebsocket returns TCPOptions valid for websocket net.Conn
    func (t TCPOptions) ForWebsocket() TCPOptions {
    	return TCPOptions{
    		UserTimeout: t.UserTimeout,
    		Interface:   t.Interface,
    		SendBufSize: t.SendBufSize,
    		RecvBufSize: t.RecvBufSize,
    	}
    }
    
    // newHTTPListener - creates new httpListener object which is interface compatible to net.Listener.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. internal/http/dial_linux.go

    			// affect clients reading data with a very slow pace  (disappropriate with socket buffer sizes)
    			if opts.UserTimeout > 0 {
    				_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, unix.TCP_USER_TIMEOUT, opts.UserTimeout)
    			}
    
    			if opts.Interface != "" {
    				if h, _, err := net.SplitHostPort(address); err == nil {
    					address = h
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 4.8K bytes
    - Viewed (3)
Back to top