New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault: 11 when call HTTPServerResponse.switchProtocol #1502

changloong opened this Issue May 30, 2016 · 0 comments


None yet
1 participant

changloong commented May 30, 2016

m_rawConnection will be null if delegate not close the connection.

    void switchProtocol(string protocol, scope void delegate(scope ConnectionStream) del)
        statusCode = HTTPStatus.SwitchingProtocols;
        if (protocol.length) headers["Upgrade"] = protocol;
        scope conn = new ConnectionProxyStream(m_conn, m_rawConnection);
        assert(m_rawConnection !is null) ;
        m_rawConnection.close(); // connection not reusable after a protocol upgrade

@s-ludwig s-ludwig closed this in 7f51391 Jun 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment