Community Page
- blog.kovyrin.net Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- nice article! nice site. you're in my rss feed now ;-) keep it up
- nice article! nice site. you're in my rss feed now ;-) keep it up
- nice article! nice site. you're in my rss feed now ;-) keep it up
- Top post. Thank you very much. :-)
- Thanks for the info. May God have mercy on us all.
Jump to original thread »
General way to implement tcp servers is “one thread/process per connection”. But on high loads this approach can be not so efficient and we need to use another patterns of connection handling. In this article I will describe how to implement tcp-server with synchronous conn
... Continue reading »
3 years ago
2 years ago
2 years ago
2 years ago
1 year ago
OT: Great tutorial, even though you never declared events.
Well done Scoundrel.
1 year ago
Btw, why must it avoid nonblocking on function handle_io_on_socket? It accessing db like MySQL nonblocking?
1 year ago
Just use google's translator. CLick this link to see a translation (should help a little):
http://translate.google.com/translate?hl=en&...
12 months ago
Thanks for the info for epoll. These are helpful.
I had one question regarding the user data variable given as part of epoll_event structure.
If only "fd" is used for epolling, why are u32/u64 and void pointers provided.
thanks,
Prashanth
11 months ago
This data structure is useful for passing in data that may be useful to the user of the data. For example you can cache data that has been gathered by the connection previously and then store this in a structure which the void *ptr points to. When more data is ready you then have access to the previously stored data which you can add to with the further communication.
James
11 months ago
тем более сейчас джангу перевёл на асинхронный сервер который использует epoll В)
кстати если не ошибаюсь, результатом C10K problem стал сервер lighttpd
10 months ago
Thanks,
Addisu