Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Write() after end() should raise an error? #8814

Description

@a0viedo

I was browsing the docs and found this:

Calling write() after calling end() will raise an error.

But, on branch v0.10, this code does nothing:

var http = require('http');
var server = http.createServer(function(req, res){
    res.write('hi');
    res.end();
    res.write('hi again');
});
server.listen(8080, function(){
    console.log('initialized');
});

This is a known bug or an expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions