Skip to content

Conversation

@WyriHaximus
Copy link
Member

As discussed on #62 (comment)

Supersedes #62
Solves #61

$this->emit('end', array($error, $this));

$this->removeAllListeners();
$this->stream->end();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the underlying stream be close()d here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it should 👍

@WyriHaximus
Copy link
Member Author

Ping @clue, done the requested change

private $readable = true;

public function __construct(DuplexStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers)
public function __construct(ReadableStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

For the reference only: This change preserves BC because you can still pass in a DuplexStreamInterface because it also implements the ReadableStreamInterface.

@clue
Copy link
Member

clue commented Oct 6, 2016

LGTM 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants