Added Patch for getting peer socket