venediktov / vanilla-rtb

Real Time Bidding (RTB) - Demand Side Platform framework

Home Page:http://forkbid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

re-implement timeout in exchange_handler e.g. make timeout on the same incoming thread

venediktov opened this issue · comments

auction handler's timeout in exchange_handler is implemented as std::future::wait_for and so it spawns
new thread for every incoming message.
This made our R&D tests fail with TCP/IP redis client and therefore we have decided to try continue
calling auction on the same thread with io_service timer.