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

nicu marasoiu commented on KAFKA-1282:
--------------------------------------

To make the ~O(1) cost of "traversing" more clear, typically only the first 
element in the linked list is accessed, and it will typically be used in the 
last 10 minutes, and in this case nothing happens anymore. Of course, this is 
if the low volume topics do not generate many connections, which they won't, 
with this cleaning up in place. And I am checking now that map() and the rest 
are lazy, or else for sure I can make so that only the relevant "prefix/first" 
part of the collection is iterated, typically first element only.

> 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
>            Reporter: Jun Rao
>            Assignee: Neha Narkhede
>              Labels: newbie++
>             Fix For: 0.9.0
>
>         Attachments: 
> 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.2#6252)

Reply via email to