fixed can_reuse_connection method in producer