r, "线程池已满, 连接将被放弃\r\n"); shutdown(clientFd, SHUT_RDWR);
close(clientFd);
continue;
}
//复制有关参数
s_thread_para[j][0] = 1;//设置活动标志为"活动"
s_thread_para[j][1] = clientFd;//客户端连接
s_thread_para[j][2] = serverFd;//服务索引
s_thread_para[j][3]=i; //epoll event id;
//线程解锁
pthread_mutex_unlock(s_mutex + j); }
else printf("other error!\n");
}
}
}
return 0;
}