Logstash with TCP input, TCP connection leak

I have setup Logstash to receive log via TCP with only one client sending logs. After run for a while, I found that TCP Established connections and never timeout. After googled, there's a parameter data_timeout that I could set TCP timeout but this parameters was removed since release 6.0.0. Could anyone advise about the configuration that could solve this issue?