|
@@ -1424,10 +1424,8 @@ void *message_handler_thread(void *arg) {
|
|
|
// 读取消息
|
|
|
int bytes_read = read_message(proxy_fd, buffer, MAX_BUFFER_SIZE, 1); // 1表示client
|
|
|
|
|
|
- log_message("[Debug] Read %d bytes", bytes_read);
|
|
|
-
|
|
|
if (bytes_read <= 0) {
|
|
|
- usleep(100); // 如果没有消息,等待一段时间(100微秒)
|
|
|
+ usleep(1000 * 10); // 如果没有消息,等待一段时间(10 ms)
|
|
|
continue;
|
|
|
}
|
|
|
|