mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 05:11:14 +00:00
Rewrite the resolver in C++ on a fixed query pool
Queries live in pool slots with their first A and AAAA answer inline, c-ares sockets are watched from a fixed table, and answers reach the waiter through a callback plus opaque words instead of a back-pointer. resolv.cpp keeps the C API as a shim. The event Loop can now adopt the ss_event loop, and a Poll can stop watching a socket it does not own.
This commit is contained in:
@@ -14,7 +14,6 @@ src/manager.cpp 14
|
||||
src/plugin.cpp 3
|
||||
src/process.cpp 26
|
||||
src/redir.cpp 15
|
||||
src/resolv.cpp 6
|
||||
src/rule.cpp 2
|
||||
src/server.cpp 17
|
||||
src/ss_event.cpp 5
|
||||
|
||||
Reference in New Issue
Block a user