added socket connection traversal