Fix .get and .lines for sockets #115

Merged
merged 2 commits into from Mar 12, 2013

Conversation

Projects
None yet
2 participants
@gerdr
Contributor

gerdr commented Mar 12, 2013

Aligns IO::Socket::INET.get with IO.get and fixes an encoding issue. Also adds an actual loop to IO::Socket::INET.lines, which only gathered a single line instead of all of them.

This does not unbreak HTTP::Easy, which blocks on a Parrot fix.

gerdr added some commits Mar 12, 2013

Change IO::Socket::INET.get to return undef on EOF, matching IO seman…
…tics.

Also make sure that the line separator is encoded correctly.

Now, if only someone could show me a good way to make the transcoding happen
at attribute assignment and not at every readline call...

@gerdr gerdr referenced this pull request Mar 12, 2013

Closed

Socket fix #112

@moritz moritz merged commit f54e210 into rakudo:nom Mar 12, 2013

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