[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69355] [Ruby trunk - Bug #11179] Inconsistent Addrinfo parsing a port number
From:
ibenza@...
Date:
2015-05-25 08:50:45 UTC
List:
ruby-core #69355
Issue #11179 has been updated by Shin'ya Ueoka.
Subject changed from Addrinfo parsing a port number to Inconsistent Addrinfo parsing a port number
----------------------------------------
Bug #11179: Inconsistent Addrinfo parsing a port number
https://bugs.ruby-lang.org/issues/11179#change-52629
* Author: Shin'ya Ueoka
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.3.0dev (2015-05-25 trunk 50637) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
In the case of the following code, ip_port returns 34464 because the number 99999 is cast as `short int`.
Is the result expected?
``` ruby
require 'socket'
Addrinfo.tcp('', 99999).ip_port # => 34463
```
Even if the above behavior is correct, ip_port should return 65535 in the following code. But actually, Addrinfo raises an exception because -1 is parsed as service name. This behavior is inconsistent with the above.
``` ruby
require 'socket'
Addrinfo.tcp('', -1).ip_port # => Servname not supported for ai_socktype (SocketError)
```
--
https://bugs.ruby-lang.org/