Adding 2s timeout to apache client