epoll Questions

2

Solved

I'm rewriting a multithread Linux-2.6.32+ application to replace select with epoll. The man pages for epoll_create1(2) declare that: If flags is 0, then, other than the fact that the obsolete s...
Whitelivered asked 4/4, 2012 at 12:38

2

Let's say I have set a set of file descriptors, say 8, 9, 10, 11, 12 in the order specified and do an epoll_wait() for data to be read on them. epoll_wait returns with data to be read on socket 8,...
Bookerbookie asked 19/3, 2012 at 12:39

2

Full disclosure, I'm a student and this is an assignment. I've been working on it for over a week almost non-stop (in addition to previous time spent) and I can't figure out what I'm doing wrong. M...
Moult asked 6/3, 2012 at 7:56

2

Solved

I'm using epoll to write a media server. The fds are all set to non-blocking and I'm using edge-triggered events. I know for EPOLLIN I need to loop over reading the fd until EAGAIN is returned. But...
Usance asked 5/7, 2011 at 15:0

2

Solved

Short question but for me its difficult to understand. Why exactly does ePoll scale better than Poll?
Frankforter asked 21/3, 2011 at 21:28

2

Solved

For some time now I have been googling a lot to get to know about the various ways to acheive asynchronous programming/behavior on nix machines and ( as known earlier to me ) got confirmed on the f...
Fullerton asked 8/1, 2012 at 8:57

1

Solved

Assume a TCP socket on the local linux host is in a connected state with a remote host. The local host is using epoll_wait to be notified of events on the socket with the remote host. If the remot...
Quizzical asked 3/1, 2012 at 2:59

1

Solved

Assume the following code where "sock" is a handle to TCP socket that was previously registered with an epoll file descriptor designated by epfd. epoll_ctl(epfd, EPOLL_CTL_DEL, sock, &ev); clo...
Rafflesia asked 3/1, 2012 at 3:28

1

Solved

The following code essentially cats a file with select.select(): f = open('node.py') fd = f.fileno() while True: r, w, e = select.select([fd], [], []) print '>', repr(os.read(fd, 10)) time.s...
Pellucid asked 27/12, 2011 at 14:29

1

Would the following single threaded UDP client application see a performance benefit from using epoll over simply calling recvfrom/sendto on non-blocking sockets? Let me explain the client. I am ...
Genova asked 21/12, 2011 at 22:50

3

Solved

I am trying to create a socket server in C for a Collaborative real-time editor http://en.wikipedia.org/wiki/Collaborative_real-time_editor but I don't know what is the best server architecture for...
Chuchuah asked 28/11, 2011 at 13:24

2

I've read the C10K doc as well as many related papers on scaling up a socket server. All roads point to the following: Avoid the classic mistake of "thread per connection". Prefer epoll over sele...
Rhyton asked 29/11, 2011 at 8:11

1

I have been using select to handle connections, recently there was a change an our socket library and select was replaced by epoll for linux platform. my application architecture is such that I ma...
Veinule asked 24/11, 2011 at 2:53

2

Solved

Can epoll (on Linux) be somehow useful for regular files? I know it's primarily used with sockets but just wonder.
Newsom asked 8/11, 2011 at 22:19

2

Solved

I'm trying to write a scalable custom web server. Here's what I have so far: The main loop and request interpreter are in Cython. The main loop accepts connections and assigns the sockets to one o...
Kiyokokiyoshi asked 9/9, 2011 at 6:58

2

Solved

I am working on a network programming using epoll. I have a connection list and put every client in the list. I can detect user disconnection by reading 0 if the user disconnected normally. However...
Intrauterine asked 22/6, 2011 at 2:39

1

Solved

Could you guys provide me a good sample code using EPOLLHUP for dead peer handling? I know that it is a signal to detect a user disconnection but not sure how I can use this in code..Thanks in adva...
Hindrance asked 22/6, 2011 at 9:43

1

Solved

I am working on a network programming using epoll. I was wondering a situation that server didn't receive all the data client sent. For example if a client sent 100 bytes and somehow server only re...
Gagger asked 21/6, 2011 at 7:1

2

I think these are the two event-dealing libraries among the best. These two both have many users,but which is better?
Rojas asked 25/5, 2011 at 5:49

2

Solved

I need to know about Epoll On linux System. Could you recommend manual or guides about epoll library? need more detailed guides. it's better to have some examples. help me. and Thank you f...
Dirtcheap asked 26/8, 2008 at 2:0

1

Solved

I have a multithread linux program which uses epoll(7). The epoll(7) man page says when one of its fds gets closed, this fd will be automatically removed from the epoll set. My question is what if ...
Logistician asked 17/5, 2011 at 2:52

2

Solved

I wrote concurrent application and have caught the error: buildFdSets: file descriptor out of range I found out that it is the OS limit on the number of file descriptors in one process, in my...
Dakotadal asked 19/11, 2010 at 13:49

1

Could someone explain what the difference is between epoll, poll and threadpool? What are the pros / cons? Any suggestions for frameworks? Any suggestions for simple/basic tutorials? It seems tha...
Joiejoin asked 4/11, 2010 at 1:37

3

Solved

I need to create specialized HTTP server, for this I plan to use epoll sycall, but I want to utilize multiple processors/cores and I can't come up with architecture solution. ATM my idea is follown...
Irregular asked 14/1, 2011 at 3:8

2

My linux application is performing non-blocking TCP connect syscall and then use epoll_wait to detect three way handshake completion. Sometimes epoll_wait returns with both POLLOUT & POLLERR ev...
Austin asked 20/5, 2010 at 15:4

© 2022 - 2024 — McMap. All rights reserved.