server socket patch