General

Profile

koshigoe (Masataka SUZUKI)

  • Login: koshigoe
  • Registered on: 01/23/2017
  • Last sign in: 05/11/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 4 4

Activity

07/13/2020

10:06 PM Ruby Bug #17027: Connection leak possibility in Net::FTP#transfercmd
https://github.com/ruby/net-ftp/pull/2 koshigoe (Masataka SUZUKI)
11:00 AM Ruby Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Is this patch correct?
Should I close connection use `shutdown` and `read`?
```diff
--- /Users/koshigoe/.rbenv/versions/2.7.1/lib/ruby/2.7.0/net/ftp.rb.orig 2020-07-13 19:41:53.000000000 +0900
+++ /Users/koshigoe/.rbenv/versions/2....
koshigoe (Masataka SUZUKI)
10:51 AM Ruby Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Fixed only about ACTIVE mode? koshigoe (Masataka SUZUKI)
10:46 AM Ruby Bug #17027: Connection leak possibility in Net::FTP#transfercmd
Oops
https://bugs.ruby-lang.org/issues/9872
koshigoe (Masataka SUZUKI)
10:44 AM Ruby Bug #17027 (Closed): Connection leak possibility in Net::FTP#transfercmd
https://github.com/ruby/ruby/blob/bad7ab35d1e38f47b09f15fc5750387ac73b2286/lib/net/ftp.rb#L542-L556
https://github.com/ruby/net-ftp/blob/14d2544190f7e4b77b41a3fd0c676f5b8ebd238c/lib/net/ftp.rb#L542-L556
The connection `conn` may not ...
koshigoe (Masataka SUZUKI)

05/18/2020

12:21 AM Ruby Bug #16780: Net::FTP PUT command issuing Net::ReadTimeout too quickly
I'm facing the same problem.
The `Net::FTP#close` suppresses exception about `Socket#shutdown` and `Socket#read`.
- https://github.com/ruby/ruby/blob/a0c7c23c9cec0d0ffcba012279cd652d28ad5bf3/lib/net/ftp.rb#L1340-L1355
~~~ruby
...
koshigoe (Masataka SUZUKI)

12/10/2019

10:54 AM Ruby Bug #16413: Net::FTP#put で書き込みエラーが発生した時のコネクション切断
ありがとうございます。
アップロード失敗時にコネクションが残らないことが確認できました。
koshigoe (Masataka SUZUKI)
06:37 AM Ruby Bug #16413 (Closed): Net::FTP#put で書き込みエラーが発生した時のコネクション切断
### 疑問
`Net::FTP#storbinary` などをみると、 `conn.write` で例外が発生した際に `conn.close` を呼ばない実装だと思います。
https://github.com/ruby/ruby/blob/7be550d046c726c2a3aa625ceb260d9b2268fb5a/lib/net/ftp.rb#L683-L707
一方で `Net::FTP#retrbinary` では `conn.shutdo...
koshigoe (Masataka SUZUKI)

01/24/2018

12:29 AM Ruby Bug #14387 (Closed): Ruby 2.5 を Alpine Linux で実行すると比較的浅めで SystemStackError 例外になる
CircleCI で Alpine Linux を使って Ruby 2.5.0 で Rubocop を実行した時に遭遇した例外です(Ruby 2.4.3 では発生しませんでした)。
Ruby のバージョンによって、再帰が止められるまでの回数に大きな違いがあるのはなぜでしょうか?
これは、意図された挙動なのか、Ruby の変更によるものでは無く Alpine Linux 固有の問題なのか、教えていただく事は可能でしょうか?
Alpine Linux の Tr...
koshigoe (Masataka SUZUKI)

01/23/2017

04:27 AM Ruby Bug #13149 (Closed): Ruby 2.4.0 の CSV の field_size_limit オプションで先読み文字数を制限できない
Ruby 2.4.0 から、指定文字数未満で例外が出る事も、指定文字数以上で例外が出ない事もあります。
以下、指定文字数未満で例外が出るケース。
~~~ruby
require 'csv'
CSV.new(DATA, field_size_limit: 4).each { |x| p x }
__END__
"a","b"
"
2
",""
~~~
~~~
$ ruby test.rb
["a", "b"]
~/.rben...
koshigoe (Masataka SUZUKI)

Also available in: Atom