Apply sockets patch