Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newMuxStateless (0.25 sec)

  1. internal/grid/muxserver.go

    	cancel           context.CancelFunc
    	inbound          chan []byte
    	parent           *Connection
    	sendMu           sync.Mutex
    	recvMu           sync.Mutex
    	outBlock         chan struct{}
    }
    
    func newMuxStateless(ctx context.Context, msg message, c *Connection, handler StatelessHandler) *muxServer {
    	var cancel context.CancelFunc
    	ctx = setCaller(ctx, c.remote)
    	if msg.DeadlineMS > 0 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    		}
    		if handler == nil {
    			gridLogIf(ctx, c.queueMsg(m, muxConnectError{Error: "Invalid Handler for type"}))
    			return
    		}
    		_, _ = c.inStream.LoadOrCompute(m.MuxID, func() *muxServer {
    			return newMuxStateless(ctx, m, c, *handler)
    		})
    	} else {
    		// Stream:
    		var handler *StreamHandler
    		if subID == nil {
    			if !m.Handler.valid() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top