You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "nicu marasoiu (JIRA)" <ji...@apache.org> on 2015/06/01 14:14:19 UTC

[jira] [Comment Edited] (KAFKA-1282) Disconnect idle socket connection in Selector

    [ https://issues.apache.org/jira/browse/KAFKA-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567222#comment-14567222 ] 

nicu marasoiu edited comment on KAFKA-1282 at 6/1/15 12:14 PM:
---------------------------------------------------------------

Hi,

I added a straight test. I extracted some methods out in order to parametrize differently the server but still reuse. I think it can be tweaked to wait for less time, but experiments with smaller millis failed. I can also try a test with multiple connections, if you think it is worth it. 


was (Author: nmarasoi):
Hi,

Added a test. I think it can be tweaked to wait for less time, but experiments with really small millis failed. I can also try a test with multiple connections, if you think it is worth it. 

> Disconnect idle socket connection in Selector
> ---------------------------------------------
>
>                 Key: KAFKA-1282
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1282
>             Project: Kafka
>          Issue Type: Bug
>          Components: producer 
>    Affects Versions: 0.8.2.0
>            Reporter: Jun Rao
>            Assignee: nicu marasoiu
>              Labels: newbie++
>             Fix For: 0.8.3
>
>         Attachments: 1282_access-order.patch, 1282_access-order_+_test_single_conn.patch, 1282_brush.patch, 1282_brushed_up.patch, KAFKA-1282_Disconnect_idle_socket_connection_in_Selector.patch
>
>
> To reduce # socket connections, it would be useful for the new producer to close socket connections that are idle. We can introduce a new producer config for the idle time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)