flush socket to client and set block to 1400 bytes so we don't fragment TCP packets because pxelinux hangs sometimes, cleanup output