Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setZeroPayloadFlag (0.13 sec)

  1. internal/grid/muxclient.go

    	m.singleResp = false
    	msg := message{
    		Op:         OpConnectMux,
    		Handler:    h,
    		Flags:      FlagEOF,
    		Payload:    req,
    		DeadlineMS: uint32(m.deadline.Milliseconds()),
    	}
    	msg.setZeroPayloadFlag()
    	if m.subroute != nil {
    		msg.Flags |= FlagSubroute
    	}
    
    	// Send...
    	err := m.send(msg)
    	if err != nil {
    		out <- Response{Err: err}
    		return
    	}
    
    	// Route directly to output.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    			Seq:   m.Seq,
    			Op:    OpResponse,
    			Flags: FlagEOF,
    		}
    		if err != nil {
    			m.Flags |= FlagPayloadIsErr
    			m.Payload = []byte(*err)
    		} else {
    			m.Payload = b
    			m.setZeroPayloadFlag()
    		}
    		gridLogIf(ctx, c.queueMsg(m, nil))
    	}(m)
    }
    
    func (c *Connection) handlePong(ctx context.Context, m message) {
    	var pong pongMsg
    	_, err := pong.UnmarshalMsg(m.Payload)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top