Re: fsockopen nntp stalls

From: Date: Thu, 27 Dec 2001 04:06:27 +0000
Subject: Re: fsockopen nntp stalls
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-78811@lists.php.net to get a copy of this message
Good suggestion, in fact I just recompiled to include the IMAP extensions for just that purpose. Unfortunately, I was unable to get a decent understanding of how to use the IMAP extensions with NNTP, and since I have implemented connection level NNTP sessions in a number of languages I thought it may be easier. If you are aware of a good example or tutorial for implementing NNTP with IMAP I would appreciate a link. P.S. Thanks for this wonderful tool. Fred Rasmus Lerdorf <rasmus@php.net> wrote in message news:Pine.LNX.4.33.0112261955340.1774-100000@rasmus.php.net... > Why not just use the imap extension which supports the NNTP protocol > natively? > > On Wed, 26 Dec 2001, Fred wrote: > > > I am attempting to use fsockopen to connect to a news server. I am able to > > successfully connect and authenticate. In fact, I can issue many commands > > without a hitch. > > > > I do, however, have a problem with commands which require multiline results. > > For instance, issuing the list command and echoing the results to the > > browser invariably results in the browser stalling. There is no timeout > > error from php, but after an arbitrary number of lines the browser stalls > > and does not receive the rest of the stream. > > > > I first thought this was some type of timeout error, but the odd thing is > > that the amount of data successfully recieves varies depending on the nntp > > server. > > > > For example: server A may have 90,000 groups to list and stalls after > > transferring 70,000 or so. On the other hand, server B may have only 300 > > groups to list and stalls after 250. > > > > If anyone has had any experience with this problem, please let me know what > > you did to resolve it. > > > > Fred > > > > > > > > >

« previous php.general (#78811) next »