server_thread