Commit 5fa2b33a authored by Denis Bilenko's avatar Denis Bilenko

adapt previous patch to libevent 1.4: use evhttp_connection_new instead of...

adapt previous patch to libevent 1.4: use evhttp_connection_new instead of evhttp_connection_base_new
parent fb3002e8
......@@ -512,8 +512,8 @@ cdef class http_connection:
self._owned = owned
@classmethod
def new(cls, char* address, unsigned short port, event_base base):
cdef void* ptr = evhttp_connection_base_new(base._ptr, NULL, address, port)
def new(cls, char* address, unsigned short port):
cdef void* ptr = evhttp_connection_new(address, port)
if ptr != NULL:
return cls(<size_t>ptr, 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment