Fix handling of HTTP/S keep-alives (RIPD-556)

Need this to be closely examined
spurious wakeups do not cause the completion handler to be called.