Closed y-ken closed 7 years ago
Oh! I missed this message. I'm checking this.
It seems that twitter gem's Twitter::Streaming::Client
does not have API to close connection gracefully.
So we cannot close connection to twitter.com while Fluentd shutdown sequence.
Maybe we need to implement Twitter::Streaming::Client#close
and call it in Fluent::Plugin::TwitterInput#shutdown
to stop firing new events from twitter stream:
def shutdown
@client.close
super
end
Thank you for workaround solution! I'm surprised because this problem comes from inside ruby core.
:memo:
Using OpenSSL::SSL::SSLSocket#read_nonblock
instead of #readpartial
and implement Twitter::Client#close
, Twitter::Streaming::Connection#close
can resolve this problem.
See also following links:
Thank you. I'll follow the updates.
Hi @okkez
I'm afraid do you know the solve this problem?
repeatable example
startup with following command. and exit wide ctrl-c.
error output