Skip to content
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

Make clientError overridable #4557

Closed
wants to merge 5 commits into from
Closed

Commits on Jan 6, 2016

  1. tls: rename clientError to tlsClientError

    `clientError` will have `http.Server`-specific behavior, and we don't
    want to shadow it in `tls.Server`.
    indutny committed Jan 6, 2016
    Configuration menu
    Copy the full SHA
    0f65247 View commit details
    Browse the repository at this point in the history
  2. http: overridable clientError

    Make default `clientError` behavior (close socket immediately)
    overridable. With this APIs it is possible to write a custom error
    handler, and to send, for example, a 400 HTTP response.
    
        http.createServer(...).on('clientError', function(err, socket) {
          socket.end('HTTP/1.1 400 Bad Request\r\n\r\n');
          socket.destroy();
        });
    
    Fix: nodejs#4543
    indutny committed Jan 6, 2016
    Configuration menu
    Copy the full SHA
    9fc35f4 View commit details
    Browse the repository at this point in the history
  3. doc: http fixes

    indutny committed Jan 6, 2016
    Configuration menu
    Copy the full SHA
    3967df7 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2016

  1. http: test and fixes

    indutny committed Jan 7, 2016
    Configuration menu
    Copy the full SHA
    5515479 View commit details
    Browse the repository at this point in the history
  2. https: fixes

    indutny committed Jan 7, 2016
    Configuration menu
    Copy the full SHA
    2ba3898 View commit details
    Browse the repository at this point in the history