http: properly support keep-alive