improve http handling for dropped connections