-
Notifications
You must be signed in to change notification settings - Fork 787
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
IO#readlines/IO#getc hangs while reading over TCPSocket #4982
Comments
matz
added a commit
that referenced
this issue
Apr 28, 2020
matz
added a commit
that referenced
this issue
Apr 28, 2020
matz
added a commit
that referenced
this issue
Apr 28, 2020
matz
added a commit
that referenced
this issue
Apr 28, 2020
matz
added a commit
that referenced
this issue
Apr 28, 2020
mimaki
pushed a commit
to mruby-Forum/mruby
that referenced
this issue
May 7, 2020
mimaki
pushed a commit
to mruby-Forum/mruby
that referenced
this issue
May 7, 2020
mimaki
pushed a commit
to mruby-Forum/mruby
that referenced
this issue
May 7, 2020
mimaki
pushed a commit
to mruby-Forum/mruby
that referenced
this issue
May 7, 2020
The bug was introduced by mruby#4712. The `getc' problem resurrected. It should be addressed soon.
mimaki
pushed a commit
to mruby-Forum/mruby
that referenced
this issue
May 7, 2020
The behavior is different from CRuby, but we believe this is a right behavior for mruby, which only supports either ASCII or UTF-8 exclusively; fix mruby#4983, ref mruby#4982 ``` $ printf '\xe3\x81' | ruby -e 'p STDIN.readchar' "\xE3\x81" ``` ``` $ printf '\xe3\x81' | mruby -e 'p STDIN.readchar' "\xE3" ```
mimaki
pushed a commit
to mruby-Forum/mruby
that referenced
this issue
May 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋
Since commit 992ba47, the following script hangs until the other side closes the connection:
With mruby-io and mruby-socket core mrbgems compiled in, running the above script and then e.g.
curl 'http://localhost:9292/'
outputs:Before 992ba47:
After:
Same happens while calling
session.getc
in the inner loop. Is this expected behavior? It also doesn't happen with MRI Ruby.The text was updated successfully, but these errors were encountered: