Permalink
Browse files

Make readline() always return complete lines instead of partial ones,…

… even if we have to block
  • Loading branch information...
gerdr committed Mar 12, 2013
1 parent 3c59862 commit c01a0a507ba735cb66f3ca4e111b9a8ac980810d
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/io/utilities.c
View
@@ -466,12 +466,6 @@ io_readline_encoded_string(PARROT_INTERP, ARGMOD(PMC *handle),
io_read_chars_append_string(interp, s, handle, vtable, buffer, bytes_to_read);
total_bytes_read += bytes_to_read;
available_bytes -= bytes_to_read;
-
- /* Some types, like Socket, don't want to be read more than once in a
- single request because recv can hang waiting for data. In those
- cases, break out of the loop early. */
- if ((vtable->flags & PIO_VF_MULTI_READABLE) == 0 && buffer->raw_reads > raw_reads)
- break;
}
if (total_bytes_read == 0)

0 comments on commit c01a0a5

Please sign in to comment.