epoll Questions
2
Solved
I believe Java's NIO library will use epoll on Linux machines. What are all the advantages of using Epoll instead of NIO on Linux machines.
1
When an application has a huge amount of data (400M) to write to a non-blocking socket, write() returns EWOULDBLOCK or EAGAIN when the send buffer becomes full.
When the socket is (e)polled, I som...
1
Solved
Recently updated the Linux kernel from 2.6.18 to 2.6.32, and an existing application starts error out with following error message:
epoll_ctl() failed: No such file or directory [errno = 2].
I di...
2
Solved
I'm learning to use epoll function.
But my OS X, Mountain Lion doesn't have a header file, sys/epoll.h.
I'd like to use epoll function on OS X. How Can I use epoll function?
1
Solved
Also see this question, unanswered as of now.
There is a lot of confusion about EPOLLHUP, even in the man and Kernel docs. People seem to believe it is returned when polling on a descriptor locally...
Shell asked 24/10, 2018 at 18:56
2
So we use Spring websocket STOMP + RabbitMQ on the backend and we are having troubles with the open file descriptors. After a certain time, we hit the limit on the server and the server does not ac...
Jaehne asked 19/9, 2018 at 12:50
1
I have seen a lot of argument about epoll accepted new fd and spawn new thread for read and write on it's own thread doesn't scale well? But how it doesn't scale well? What if every connection has ...
1
All the examples I can find online are servers. I want to build a basic web crawler using epoll. So I need a basic client example to get me started.
When I say basic I really mean a complete examp...
2
I am building a messaging application using Netty 4.1 Beta3 for designing my server and the server understands MQTT protocol.
This is my MqttServer.java class that sets up the Netty server and bi...
3
I am currently building something that uses epoll. It works pretty nice, but it would be good to have a notification when a file descriptor gets removed from epoll when the underlying fd is closed....
1
Solved
I wrote some code that has an epoll-eventloop, accepts new connections and pretends to be a http-server.
The posted code is the absolute minimum ... I removed everything (including all error-checks...
Phidippides asked 4/4, 2018 at 10:57
4
Solved
I am looking to write a server application in C++ that is meant to handle tens of thousands of clients simultaneously. It should run under Windows and Linux. I have been looking around for framewor...
Bowie asked 15/7, 2011 at 0:15
2
Solved
I have ported a program over to epoll from select to increase the number of sockets we can handle. I have added the sockets to the epoll FD and can read and write happily.
However, I am concerned ...
4
Solved
I would like to use select.epoll() in my Python library.
Unfortunately epoll is not available everywhere.
I need a way to fallback to select.select().
I tried to find something at pypi, but fail...
Huang asked 11/1, 2018 at 9:15
1
Solved
I've been reading through libev's source code and stumbled upon this comment:
a) epoll silently removes fds from the fd set. as nothing tells us that an fd has been removed otherwise, we have to...
Laryssa asked 28/10, 2017 at 7:23
2
Currently I have glibc which does not support epoll, so I installed new glibc at non default lation which supports epoll. I have python program which uses this epoll.
I tried to set LD_LIBRARY_PA...
3
Solved
I am writing a small server that will receive data from multiple sources and process this data. The sources and data received is significant, but no more than epoll should be able to handle quite w...
Alterable asked 19/2, 2014 at 21:21
2
Is it possible to use epoll in one-shot level-triggered mode?
I couldn't find any information on it when I searched; it seems everyone uses edge-triggered mode.
3
Solved
Can anyone please help me to answer the questions about epoll_wait.
Is it overkill to use many threads that call epoll_wait on the same fds set to serve at about 100K active sockets? or will it j...
3
Solved
In LDD3, i saw such codes
static unsigned int scull_p_poll(struct file *filp, poll_table *wait)
{
struct scull_pipe *dev = filp->private_data;
unsigned int mask = 0;
/*
* The buffer is cir...
Felonious asked 14/5, 2015 at 10:4
2
Solved
I made a google search about "anonymous inode" and it seems it's related to epoll ... but what actually is it?
3
I read document abount edge triggered epoll function in web as follows:
1. The file descriptor that represents the read side of a pipe (rfd) is registered on the epoll instance.
2. A pipe writer w...
Birddog asked 1/2, 2013 at 9:32
2
Suppose the following series of events occurs:
We set up a listening socket
Thread A blocks waiting for the listening socket to become readable, using EPOLLIN | EPOLLEXCLUSIVE
Thread B also block...
3
Solved
I am new to linux server programming with epoll.
I have 2 threads: Thread_Accept and Thread_epoll. The former is block accept loop, if new connection is coming, it will add the new fd with epoll_c...
Saturation asked 27/7, 2011 at 15:46
1
There is a lot of old information on the net regarding an epoll/kqueue enabled GHC. For example, the code on the Simple Servers wiki page doesn't compile anymore.
Could someone provide a basic exa...
© 2022 - 2024 — McMap. All rights reserved.