Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for deleteMux (0.07 sec)

  1. internal/grid/muxclient.go

    		ticker := time.NewTicker(m.clientPingInterval)
    		defer ticker.Stop()
    		pingTimer = ticker.C
    		atomic.StoreInt64(&m.LastPong, time.Now().UnixNano())
    	}
    	defer m.parent.deleteMux(false, m.MuxID)
    	for {
    		select {
    		case <-m.ctx.Done():
    			if debugPrint {
    				fmt.Println("Client sending disconnect to mux", m.MuxID)
    			}
    			err := context.Cause(m.ctx)
    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

    		if debugReqs {
    			fmt.Println(m.MuxID, c.String(), "handleMuxServerMsg: DELETING MUX")
    		}
    		c.outgoing.Delete(m.MuxID)
    	}
    }
    
    func (c *Connection) deleteMux(incoming bool, muxID uint64) {
    	if incoming {
    		if debugPrint {
    			fmt.Println("deleteMux: disconnect incoming mux", muxID)
    		}
    		v, loaded := c.inStream.LoadAndDelete(muxID)
    		if loaded && v != nil {
    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