01-05-2015, 06:27 AM
Network API
|
01-05-2015, 07:22 AM
That's a hacky way to do it. I'm talking about either coding one using asynchronous luasockets, or waiting for the asynchronous api.
01-05-2015, 07:46 AM
I'm thinking about basing this all on the libevent project: http://libevent.org/
01-05-2015, 08:22 AM
01-05-2015, 09:37 PM
If we do use libevent, we should used the "bufferevents" API rather than the event loop, because it also supports windows IOCP.
01-06-2015, 02:02 AM
bufferevents are used within the event loop.
01-06-2015, 02:07 AM
I know, I meant using the abstraction rather than the raw network events directly.
01-06-2015, 04:55 AM
If we use libevent, will we replace the the http server with libevents implementation?
01-06-2015, 06:11 AM
It is rather undocumented, so I don't know yet. Do they have a proper parser for things like form data?
01-06-2015, 06:46 AM
Also, evhttp seems to read the entire request into memory before calling the callback; this would allow malicious clients to crash the server by sending an arbitrarily-long request. Our parser is better in this way, it parses stuff as it comes and calls callbacks, discarding data when it's been processed. I'd say we keep our http parser for the time being.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 6 Guest(s)