This commit is contained in:
laodaming 2023-08-30 14:02:29 +08:00
parent fe6baf6e41
commit 13ca107963

View File

@ -366,7 +366,7 @@ func (w *wsConnectItem) sendToInChan(data []byte) {
case w.inChan <- data:
return
case <-time.After(time.Millisecond * 200): //200豪秒超时丢弃说明超过消费速度了
w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_INCOME_CACHE_QUEUE_OVERFLOW, "send message is too frequent,Please reduce the sending speed ,otherwise, the message you sent may be lost"))
w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_INCOME_CACHE_QUEUE_OVERFLOW, "send message is too frequent,the message is ignore by system:"+string(data)))
return
}
}