fixed persistent connection example