Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for handleIncoming (0.05 sec)

  1. internal/grid/muxclient.go

    		}
    		m.addResponse(Response{Err: ErrIncorrectSequence})
    		return false
    	}
    	m.RecvSeq++
    	return true
    }
    
    // response will send handleIncoming response to client.
    // may never block.
    // Should return whether the next call would block.
    func (m *muxClient) response(seq uint32, r Response) {
    	if debugReqs {
    		fmt.Println(m.MuxID, m.parent.String(), "RESP")
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    		return err
    	}
    	if m.Op != r.Op() {
    		return fmt.Errorf("unexpected response OP, want %v, got %v", r.Op(), m.Op)
    	}
    	_, err = r.UnmarshalMsg(m.Payload)
    	return err
    }
    
    func (c *Connection) handleIncoming(ctx context.Context, conn net.Conn, req connectReq) error {
    	c.connMu.Lock()
    	c.debugInConn = conn
    	c.connMu.Unlock()
    	if c.blockConnect != nil {
    		// Block until we are allowed to connect.
    		<-c.blockConnect
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 46.9K bytes
    - Viewed (0)
Back to top