epoll
I can't understand polling/select in python
I\'m doing some threaded asynchronous networking experiment in python, using UDP. I\'d like to understand polling and the select python module, I\'ve never used them in C/C++.[详细]
2023-04-05 10:09 分类:问答Should I use epoll or just blocking recv in threads?
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 of[详细]
2023-04-03 21:38 分类:问答epoll_wait fails due to EINTR, how to remedy this?
My epoll_wait fails due to EINTR. My gdb trace shows this: enter code here 221in ../nptl/sysdeps/pthread/createthread.c[详细]
2023-03-23 14:31 分类:问答Executing epoll_ctl in one thread while the other thread is in the middle of epoll_wait
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_ctl([详细]
2023-03-23 02:22 分类:问答How do I implement epoll timeout?
I am working on a network programming using epoll. It seems like working fine. I would like to add a timeout function so if a client doesn\'t sent开发者_如何转开发 anything for a long period time then[详细]
2023-03-18 01:41 分类:问答Does epoll(), do its job in O(1)?
Wikipedia says unlike the older system calls, which operate at O(n), epoll operates in O(1) [2]). http://en.wikipedia.org/wiki/Epoll[详细]
2023-03-15 19:22 分类:问答Handling short reads using epoll()
Let\'s say client sent 100 bytes of data but somehow server only received 90 byt开发者_如何学Goes. How do I handle this case? If server calls the \"read\" function inside of while loop checking the to[详细]
2023-03-15 14:21 分类:问答How do I use EPOLLHUP
Could you guys provide me a good sample code using EPOLLHUP for dead peer handling? I 开发者_StackOverflowknow that it is a signal to detect a user disconnection but not sure how I can use this in cod[详细]
2023-03-15 01:46 分类:问答epoll architecture problem with bottle neck issue
while(m_severRun){ printf(\"ServerManager::eventAcceptLoop, epoll_wait\\n\"); int event_cnt = epoll_wait(m_epfd, m_events, EPOLL_SIZE, -1);[详细]
2023-03-14 23:59 分类:问答In Python epoll can I avoid the errno.EWOULDBLOCK, errno.EAGAIN?
I wrote a epoll wrapper in python, It works fine but recently I found the performance is not not ideal for large package sending. I look down into the cod开发者_StackOverflowe and found there\'s actua[详细]
2023-03-14 09:51 分类:问答