in reply to The connection with the server was reset
- Don't do that :) save converted file on disk, then return a link (or redirect) to converted file
- adjust apache timeout settings (its apache who resets connection).
- Let apache serve unconverted files, and teach your users how-to use unix2dos/dos2unix.