Timeout timeout for each connection C socket API has “connect()” and “recv()” need to manage each timeout what we need is “round trip” timeout timeout for total auction process hard to implement in some languages like C watch dog thread for each processes? multi processes + signal?
My options write in C with libev, libeio and so on use node.js (it uses libev libeio） light weight process（like Erlang）
Write in C pros Fast!
Write in C cons self memory management in the HELL multi thread in C in the HELL timeout in the HELL
use node.js pros abstracted event loop and IO multiplexing auto memory management
use node.js cons callback HELL single threaded timeout for whole process in the HELL NOT stable many upgrades
Erlang pros with lightweight process stable easy to write networking system fitting perfectly for the requirements