script not terminating immediately 
<p>I have a script that lets the user download files (stored in a blob field after doing a bin2hex() )</p>

<p><PRE>
function hex2bin($h){ ... }
// code to get $filecontent,$filesize,$uploadname from database
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header("Content-Length: $filesize");
header('Content-Disposition: attachment; filename="'.$uploadname.'"');
echo hex2bin($filecontent);
</PRE></p>

<p>everything is working fine, except the browser is taking 3 to 4 seconds after 
downloading the file to finally terminate the http session.</p>

<p>Any clue whats causing that.</p>

<p>thanks.
Pari</p>
