当我试图在RHEL5.5服务器上手工编译squid时,运行configure并得到
configure: WARNING: Eep! Cannot find epoll, kqueue, /dev/poll, poll or select!
configure: WARNING: Will try select and hope for the best.
configure: Using select for the IO loop.
看起来内核没有配置CONFIG_EPOLL。所以我尝试编译来检查它是否工作。
在我的gentoo机器(启用了CONFIG_EPOLL )上,它被编译得没有任
我想创建一个非阻塞连接。如下所示:
socket.connect(); // returns immediately
为此,我使用了另一个线程、无限循环和Linux epoll。如下所示(伪代码):
// in another thread
{
create_non_block_socket();
connect();
epoll_create();
epoll_ctl(); // subscribe socket to all events
while (true)
{
epoll_wait(); // wait a small time(~100 ms)
我在调试模式下运行corda OS v4.3,观察到以下异常 [DEBUG] 2020-01-16T12:11:16,058Z [main] internal.NativeLibraryLoader. - netty_transport_native_epoll_x86_64 cannot be loaded from java.libary.path, now trying export to -Dio.netty.native.workdir: /tmp
java.lang.UnsatisfiedLinkError: no netty_transport_native_epoll