So allowing emacs to send 0-length UDP packets turned out to be not too hard. Patch for both below. Eli, is this OK for master? It does change 2 behaviours: 1. Receiving a 0-length UDP packet will no longer cause an error 2. Calling (process-send-string proc "") now actually sends out a packet for a UDP process (an empty one). Robert --