Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RecvBufSize (0.06 sec)

  1. internal/http/listener.go

    func (t TCPOptions) ForWebsocket() TCPOptions {
    	return TCPOptions{
    		UserTimeout: t.UserTimeout,
    		Interface:   t.Interface,
    		SendBufSize: t.SendBufSize,
    		RecvBufSize: t.RecvBufSize,
    		NoDelay:     true,
    	}
    }
    
    // newHTTPListener - creates new httpListener object which is interface compatible to net.Listener.
    // httpListener is capable to
    // * listen to multiple addresses
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. internal/http/dial_linux.go

    			// Enable custom socket send/recv buffers.
    			if opts.SendBufSize > 0 {
    				_ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_SNDBUF, opts.SendBufSize)
    			}
    
    			if opts.RecvBufSize > 0 {
    				_ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_RCVBUF, opts.RecvBufSize)
    			}
    
    			if opts.NoDelay {
    				_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, unix.TCP_NODELAY, 1)
    				_ = syscall.SetsockoptInt(fd, syscall.SOL_TCP, unix.TCP_CORK, 0)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. cmd/globals.go

    	FTP  []string
    	SFTP []string
    
    	MemLimit uint64
    
    	UserTimeout         time.Duration
    	IdleTimeout         time.Duration
    	ReadHeaderTimeout   time.Duration
    	MaxIdleConnsPerHost int
    
    	SendBufSize, RecvBufSize int
    	CrossDomainXML           string
    	// The layout of disks as interpreted
    	Layout disksLayout
    }
    
    var (
    	// Global user opts context
    	globalServerCtxt serverCtxt
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. cmd/server-main.go

    		// FIXME: Bring this back when we have valid way to handle deadlines
    		//		DriveOPTimeout: globalDriveConfig.GetOPTimeout,
    		Interface:   ctxt.Interface,
    		SendBufSize: ctxt.SendBufSize,
    		RecvBufSize: ctxt.RecvBufSize,
    	}
    
    	// allow transport to be HTTP/1.1 for proxying.
    	globalProxyEndpoints = GetProxyEndpoints(globalEndpoints)
    	globalInternodeTransport = NewInternodeHTTPTransport(ctxt.MaxIdleConnsPerHost)()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
  5. cmd/common-main.go

    	ctxt.FTP = ctx.StringSlice("ftp")
    	ctxt.SFTP = ctx.StringSlice("sftp")
    	ctxt.Interface = ctx.String("interface")
    	ctxt.UserTimeout = ctx.Duration("conn-user-timeout")
    	ctxt.SendBufSize = ctx.Int("send-buf-size")
    	ctxt.RecvBufSize = ctx.Int("recv-buf-size")
    	ctxt.IdleTimeout = ctx.Duration("idle-timeout")
    	ctxt.UserTimeout = ctx.Duration("conn-user-timeout")
    
    	if conf := ctx.String("config"); len(conf) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top