Req #16488 [Opn]: using Net_NNTP_Client::getOverview doesn't seem to compress data

From: Date: Tue, 29 Sep 2009 18:32:09 +0000
Subject: Req #16488 [Opn]: using Net_NNTP_Client::getOverview doesn't seem to compress data
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1768@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16488&edit=1 ID: 16488 Updated by: heino@gehlsen.dk Reported By: alexisdal at hotmail dot com Summary: using Net_NNTP_Client::getOverview doesn't seem to compress data Status: Open Type: Feature/Change Request Package: Net_NNTP Operating System: Ubuntu 8.04 Package Version: 1.4.0 PHP Version: 5.2.4 Roadmap Versions: New Comment: You are of cause most wellcome to provide a patch! Previous Comments: ------------------------------------------------------------------------ [2009-09-29 19:30:58] heino Unfortunately Net_NNTP uses Net_Socket, which doesn't support switching between clear and compressed mode. Although it would be of cause be possible to rewrite Net_NNTP to use steams instead, I currently won't invest more time on the package beyond bugfixing and applying patches from other developers, since the package is ancient as in doesn't even use exceptions etc. Also the functionality you ask for is not part of the official NNTP protocol, and finally the protocol itself has recently been updated to version two, which requires the package to be totally revritten anyway... ------------------------------------------------------------------------ [2009-08-04 02:05:50] doconnor See also: http://www.faerber.muc.de/temp/20020404-gzip-compression-in-nntp-smtp-pop3-imap.html ------------------------------------------------------------------------ [2009-08-03 13:46:36] fourchette Description: ------------ i'm not sure if it's feat request or me not using the module correctly using Net_NNTP_Client::getOverview doesn't seem to use compressed data. Net_NNTP_Client::getOverview works just fine. However, since it might require to download a large amount of data, i would like to activate compressed data. I know the server i'm using supports it, but i don't know how nor if Net_NNTP_Client supports it and i've exhausted all the supports channels listed at http://pear.php.net/support/ Test script: --------------- require_once 'Net/NNTP/Client.php'; $nntp = new Net_NNTP_Client(); $nntp->connect('news-europe.giganews.com', 'ssl', 563); $nntp->authenticate('user', 'pass'); $nntp->selectGroup('alt.this.is.a.valid.group'); $size = 500; $start = 1602136576; // any valid message number here $range = $start.'-'.($start+$size-1); $nntp->getOverview($range); // at this point I want data to transit between servers to be compressed and it seems NEt_NNTP_Client offers no way to do it Expected result: ---------------- data transiting between server to be gzipped on the fly Actual result: -------------- data download from server doesn't seem to be compressed. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16488&edit=1

« previous php.pear.bugs (#1768) next »