Quick fix for race condition on request_id: Use shared perl variable to generate request ids instead of static C variable