It appears to be some kind of timeout that it is waiting for. 60 seconds tends to be a timeout. Mabye it is trying to fill the full 2048, and waiting till the timeout is past. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/
Quoting Matt Haught <[EMAIL PROTECTED]>: > I have made a little test script to see where the hang is occuring instead > of figuring out pear today: > > <?php > function getmicrotime() > { > list($usec, $sec) = explode(" ",microtime()); > return ((float)$usec + (float)$sec); > } > > $a = getmicrotime(); > $fp = fsockopen('mail.haught.org', 25, $errno, $errstr); > $b = getmicrotime(); > echo "(Connected in " .($b-$a). " seconds)<br>"; > > echo '>' .fgets($fp, 2048); > $c = getmicrotime(); > echo " (Read took " .($c-$b). " seconds)<br>"; > > echo '< EHLO localhost'; > fwrite($fp, "EHLO localhost\r\n"); > $d = getmicrotime(); > echo " (Write took " .($d-$c). " seconds)<br>"; > > $numlines = 2; //number of lines to read > for ($i; $i<$numlines; $i++) { > echo '>' .fgets($fp, 2048); > $e = getmicrotime(); > echo " (Read took " .($e-$d). " seconds)<br>"; > } > ?> > > The Results: > > Sept 22nd > (Connected in 0.0027800798416138 seconds) > >220 haught.org ESMTP (Read took 0.0082589387893677 seconds) > < EHLO localhost (Write took 0.00019896030426025 seconds) > >250-haught.org (Read took 0.0012670755386353 seconds) > >250-AUTH LOGIN CRAM-MD5 PLAIN (Read took 0.0014160871505737 seconds) > > Sept 23rd > (Connected in 0.0024210214614868 seconds) > >220 haught.org ESMTP (Read took 60.012040019035 seconds) > < EHLO localhost (Write took 0.00059795379638672 seconds) > >250-haught.org (Read took 60.009819984436 seconds) > >250-AUTH LOGIN CRAM-MD5 PLAIN (Read took 120.02024698257 seconds) > > Oct1st > (Connected in 0.010542035102844 seconds) > >220 haught.org ESMTP (Read took 60.008027911186 seconds) > < EHLO localhost (Write took 0.00064098834991455 seconds) > >250-haught.org (Read took 60.009781002998 seconds) > >250-AUTH LOGIN CRAM-MD5 PLAIN (Read took 120.02020800114 seconds) > > It appears that fgets is where the problem is occuring. Its taking over a > minute. Can anyone confirm? I tried a server at mail.wvwc.edu and received > the same sort of results. > > -- > Matt > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php