[#86520] [Ruby trunk Bug#14681] `syswrite': stream closed in another thread (IOError) — samuel@...
Issue #14681 has been reported by ioquatix (Samuel Williams).
3 messages
2018/04/12
[#86755] [Ruby trunk Feature#14723] [WIP] sleepy GC — normalperson@...
Issue #14723 has been reported by normalperson (Eric Wong).
6 messages
2018/04/29
[ruby-core:86549] [Ruby trunk Bug#14688] Net::HTTPResponse#value raises "Net::HTTPServerException" in 4xx response
From:
takashikkbn@...
Date:
2018-04-16 09:38:05 UTC
List:
ruby-core #86549
Issue #14688 has been updated by k0kubun (Takashi Kokubun). I like this. If nobody has an objection, I want to `deprecate_constant` the old one, and would like the same fix for Net::ProtoServerError as well. ---------------------------------------- Bug #14688: Net::HTTPResponse#value raises "Net::HTTPServerException" in 4xx response https://bugs.ruby-lang.org/issues/14688#change-71489 * Author: unasuke (Yusuke Nakamura) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6.0dev * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Call `value` method to an instance of `Net::HTTPResponse` it raises `Net::HTTPServerException` in case of HTTP response status code is 4xx. But HTTP response status code 4xx means "Client error response" not "Server response" so I think that's wrong naming. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Client_error_responses Therefore, I think it's maybe specifications bug, but it cause breaking changes in many ruby programs to change exception name. I propose to create `Net::HTTPClientException` as alias of the `Net::HTTPServerException` for compatibility. ---Files-------------------------------- lib_net_http_exceptions.patch (999 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>