add timeout to http example