diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2022-09-20 16:10:56 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2023-08-30 10:07:18 +0200 |
| commit | bcc905100f1079e191632cfd02319c10af82dac0 (patch) | |
| tree | e8dbe37eb4de741c51210f65ffaa0336ce579c8a /test/ruby/test_range.rb | |
| parent | acedbcb1b4eb6b362f11e783bff53c237d05afc6 (diff) | |
BasicSocket#recv* return `nil` rather than an empty packet
[Bug #19012]
man recvmsg(2) states:
> Return Value
> These calls return the number of bytes received, or -1 if an error occurred.
> The return value will be 0 when the peer has performed an orderly shutdown.
Not too sure how one is supposed to make the difference between a packet of
size 0 and a closed connection.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6407
Diffstat (limited to 'test/ruby/test_range.rb')
0 files changed, 0 insertions, 0 deletions
