Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for handleIncoming (0.17 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")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K 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
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top