socket: poll returns error if frame size was short.