Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for OutCapacity (0.06 sec)

  1. internal/grid/README.md

            return nil
        }
    
        err := manager.RegisterStreamingHandler(grid.HandlerDiskInfo, StreamHandler{
            Handle: handler,
            Subroute: "asubroute",
            OutCapacity: 1,
            InCapacity: 1,
        })
    ```
    
    Sample call:
    ```go
        // Get a connection to the remote host
        conn := manager.Connection(host).Subroute("asubroute")
    	
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. internal/grid/connection_test.go

    			gotCall <- struct{}{}
    			select {
    			case <-ctx.Done():
    				gotCall <- struct{}{}
    			case <-cleanReqs:
    				panic("should not be called")
    			}
    			return nil
    		},
    		OutCapacity: 1,
    		InCapacity:  1,
    	}
    	errFatal(remote.RegisterSingleHandler(handlerTest, h1))
    	errFatal(remote.RegisterStreamingHandler(handlerTest2, h2))
    	errFatal(local.RegisterSingleHandler(handlerTest, h1))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:44:00 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. internal/grid/muxserver.go

    	} else {
    		ctx, cancel = context.WithCancel(ctx)
    	}
    
    	send := make(chan []byte)
    	inboundCap, outboundCap := handler.InCapacity, handler.OutCapacity
    	if outboundCap <= 0 {
    		outboundCap = 1
    	}
    
    	m := muxServer{
    		ID:                 msg.MuxID,
    		RecvSeq:            msg.Seq + 1,
    		SendSeq:            msg.Seq,
    		ctx:                ctx,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top