You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix iteration over remoteSockets during invalidation (#195)
When receiving INVL command from peer the connection socket is closed and
removed from remoteSockets map. However, since command processing is
performed inside an outer loop over remoteSockets, the removal also
invalidates the outer loop iterator which causes a segfault[0].
Fix the issue by refactoring the loop to assign the new iterator value
returned by map::erase() to the outer loop iterator.
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
0 commit comments