add SetTimedout
 add new flags for server_thread_num