libevent

Know of any small projects implementing an HTTP service using libevent?

My C is a bit rusty. I have some ideas I'd like to try and realize with libevent. Do you know any codebase I can use as a reference? ...

libevent, windows and .NET programming

I experiment with a lot of open source software and I've noticed a fair amount of server type applications in the open source world use libevent to facilitate event-based processing rather than spawn multiple threads to handle requests. I also do a lot of .NET programming (it's my core job function), and I'm interested in learning how l...

Python http proxy library based on libevent or comparable technology?

I'm looking to build an intelligent reverse http proxy capable of routing, header examination and enrichment (eg. examine and build cookies and http headers), and various other fanciness. For a general idea of what I'm looking to build see Ruby Proxies for Scale and Monitoring - except in Python. I realize that Twisted is an exceedingl...

How to statically link libevent with gcc while compiling?

I have used event.h in on of my project but the server it has to run on does not support it. Moreover I can not install it also. Is there a way I can run my project with minimum modifications. It has to be compiled statically linked in but how do I do that? ...

Reason and solution for error -"/usr/bin/ld: cannot find -levent "?

While compiling my program which is using libevent library I am using gcc option -levent. But I am getting this error - /usr/bin/ld: cannot find -levent I do not have libevent on my system so I am statically linking to it while compiling using gcc -o Hello -static -I libevent-1.4.12-stable/ hello.c -levent How can i resolve this? ...

Is libevent required for building memcached for windows?

I accidentally deleted my previous post. Could I know exactly why I should compile libevent to be able to build memcached? Actually, I can already use memcached for windows without compiling libevent and I also installed memcached as a service. Nothing odd happens. ...

How scalable is Jetty?

Greetings! I wrote a highly scalable HTTP event (long-polling) server in C/C++ using libevent. However, it's messy, hardly portable, and lets face it: it's C. Let alone that I've been having some major issues with the mysqlcpp connector (which is complete trash), and some minor issues with libevent (it could be because I'm using 2.0.1-al...

Is there a Java equivalent to libevent?

I've written a high-throughput server that handles each request in its own thread. For requests coming in it is occasionally necessary to do RPCs to one or more back-ends. These back-end RPCs are handled by a separate queue and thread-pool, which provides some bounding on the number of threads created and the maximum number of connection...

libevent buffered events and half-closed sockets

It is simple to implement a TCP port mapper using bufferevent_* functions of libevent. However, the documentation states that "This file descriptor is not allowed to be a pipe(2)" and I doubt if it can handle the case of when we can only read or only write to a file descriptor. Will libevent work correctly if the socket is shutdown in ...

Chunked responses in libevent2

Hi I am trying to do a chunked response (of large files) in libevent this way:: evhttp_send_reply_start(request, HTTP_OK, "OK"); int fd = open("filename", O_RDONLY); size_t fileSize = <get_file_size>; struct evbuffer *databuff = NULL; for (off_t offset = 0;offset < fileSize;) { databuff = evbuffer_new(); size_t bytesLeft = f...

gevent install on x86_64 fails: "undefined symbol: evhttp_accept_socket"

I'm trying to install gevent on a fresh EC2 CentOS 5.3 64-bit system. Since the libevent version available in yum was too old for another package (beanstalkd) I compiled/installed libevent-1.4.13-stable manually using the following command: ./configure --prefix=/usr && make && make install This is the output from installing gevent: ...

Node.js for lua?

I've been playing around with node.js (nodejs) for the past few day and it is fantastic. As far as I can tell, lua doesn't have a similar integration of libev and libio which let's one avoid almost any blocking calls and interact with the network and the filesystem in an asynchronous manner. I'm slowly porting my java implementation to ...

Is there any modern review of solutions to the 10000 client/sec problem

(Commonly called the C10K problem) Is there a more contemporary review of solutions to the c10k problem (Last updated: 2 Sept 2006), specifically focused on Linux (epoll, signalfd, eventfd, timerfd..) and libraries like libev or libevent? Something that discusses all the solved and still unsolved issues on a modern Linux server? ...

libevent2 and file io

I've been toying around with libevent2, and I've got reading files working, but it blocks. Is there any way to make file reading not block just within libevent. Or, do I need to use another IO library for files and make it pump events that I need. fd = open("/tmp/hello_world",O_RDONLY); evbuffer_read(buf,fd,4096); The O_NONBLOCK flag ...

can I use curl_multi/multi_socket with libevent

I'm using libevent2 for building a server, and I'm trying to enable the server to use libcurl asynchronously, and I'm wondering about how I do that with libevent2. I would like to be able to get curl to send events so I can inspect the current state. Update: I figured it out http://github.com/mathgladiator/node.ocaml/blob/master/ext/s...