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

ASF subversion and git services commented on TS-4629:
-----------------------------------------------------

Commit d30791bcbe3fa77b36a214d68e45a666e56eb271 in trafficserver's branch 
refs/heads/master from [~amc]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d30791b ]

TS-4629: Add now required braces to for loop.


> ServerSessionPool::purge can use an invalid iterator
> ----------------------------------------------------
>
>                 Key: TS-4629
>                 URL: https://issues.apache.org/jira/browse/TS-4629
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Alan M. Carroll
>
> {{purge}} calls {{do_io_close}} on the session via an iterator and 
> {{do_io_close}} can cause the session to be de-allocated. Because the 
> container links are intrusive this causes the iterator to be come invalid 
> even though it hasn't been removed from the container.
> Also, in fixing this, I noticed {{IPHashTable::iterator}} didn't have a 
> postfix increment operator, which I added because it's perfect for this 
> application.



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

Reply via email to