Patched _serve for starttls changes