🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87508

Re: Draft -03 for COMPRESS

#87508
From: Julien ÉLIE
Date: Tue, 02 Aug 2016 19:03
42 lines
2627 bytes
Hi Michael,

>> I also have to implement the right 501 response code when the algorithm
>> name is not syntactically correct, [...]
>
> Please note me when it's finished. The error handling of flnews for the
> compression negotiation should be tested.

Now done.  You can test it if you want.
Here are examples of handled cases:

[C] COMPRESS
[S] 501 Syntax is:  COMPRESS DEFLATE

[C] COMPRESS ARG ARG
[S] 501 Syntax is:  COMPRESS DEFLATE

[C] COMPRESS \x02
[S] 501 Syntax error in compression algorithm

[C] COMPRESS NOT.VALID
[S] 501 Syntax error in compression algorithm

[C] COMPRESS AAAAAAAAAAAAAAAAAAAAA
[S] 501 Syntax error in compression algorithm

[C] COMPRESS UNKNOWN
[S] 503 Only the DEFLATE compression algorithm is supported



Do not hesitate to tell me if you notice something wrong.

-- 
Julien ÉLIE

« – Vous n'avez rien à déclarer ?
   – J'ai faim.
   – Qu'est-ce que vous avez là ?
   – Un creux ! » (Obélix)

Technical Details
Message-ID: <nnqqq0$ciu$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <njf91p$b3i$1@news.trigofacile.com> <AABXW+4JgdcAAA2l.A1.flnews@Server4.micha.freeshell.org> <njh71t$gq3$1@news.trigofacile.com> <AABXXSM2rvcAAAt6.A1.flnews@Server4.micha.freeshell.org> <njjo6n$ct3$1@news.trigofacile.com> <njjpno$eit$1@news.trigofacile.com> <AABXXXroib0AAA1G.A1.flnews@Server4.micha.freeshell.org> <njsf8k$663$1@news.trigofacile.com> <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de> <njuvm7$v0s$1@news.trigofacile.com> <AABXY9ValdcAAErq.A1.flnews@WStation5.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <nnqqq0$ciu$1@news.trigofacile.com>
Subject: Re: Draft -03 for COMPRESS
Date: Tue, 2 Aug 2016 21:03:41 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <njf91p$b3i$1@news.trigofacile.com> <AABXW+4JgdcAAA2l.A1.flnews@Server4.micha.freeshell.org> <njh71t$gq3$1@news.trigofacile.com> <AABXXSM2rvcAAAt6.A1.flnews@Server4.micha.freeshell.org> <njjo6n$ct3$1@news.trigofacile.com> <njjpno$eit$1@news.trigofacile.com> <AABXXXroib0AAA1G.A1.flnews@Server4.micha.freeshell.org> <njsf8k$663$1@news.trigofacile.com> <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de> <njuvm7$v0s$1@news.trigofacile.com> <AABXY9ValdcAAErq.A1.flnews@WStation5.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 2 Aug 2016 19:03:28 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080103c8006123b21d3a9dec66.ipv6.abo.wanadoo.fr:2a01:cb08:103:c800:6123:b21d:3a9d:ec66";
 logging-data="12894"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.2.0
In-Reply-To: <AABXY9ValdcAAErq.A1.flnews@WStation5.stz-e.de>
X-Received-Bytes: 2533
X-Received-Body-CRC: 1458624372