🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60703

Re: How to tap into an NNTP session for debugging?

#60703
From: AlfredReibenschuh
Date: Thu, 26 Sep 2002 06:34
30 lines
2283 bytes
On Wed, 25 Sep 2002 22:27:35 +0000 (UTC), ese002@news9.exile.org (Eric Edwards)
wrote:

>I'm trying to debug a Net::NNTP script that talks to INN on localhost.
>Something strange is happening after submitting an article but I can't
>figure out what.  
>
>When talking to remote servers, I can use snoop (Solaris packet sniffer)
>to watch the transaction.  I've squashed many a bug that way.  
>Unfortunately, snoop doesn't seem to have any way of watching local
>traffic.
>
>Does anyone know how a tap might be implemented?  I've tried just
>debugging Net::NNTP, but it is convoluted enough that I couldn't my tap
>to work reliably and without screens full of scrolling errors.

$nntp = Net::NNTP->new("my-news.server.com", Debug=>2);

this will print the session to stderr.


regards,
  __              _       
 / _|_ __ ___  __| | ___    geek
| |_| '__/ _ \/ _` |/ _ \ 
|  _| | |  __/ (_| | (_) |  linux, aix, solaris, *bsd
|_| |_|  \___|\__,_|\___/   apache, mysql, perl, php

        http://www.penguin.at0.net/~fredo/
Technical Details
Message-ID: <5oa5pugcbg1htf6fadfrmga3fpof4thpg1@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.modules.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.bredband.com!bredband!news01.chello.se!newsrouter.chello.at!news.chello.at.POSTED!53ab2750!not-for-mail
References: <slrnap4e2m.lq1.ese002@spica.exile.org>

Show Full Headers
Complete Article Headers
Message-ID: <5oa5pugcbg1htf6fadfrmga3fpof4thpg1@4ax.com>
Subject: Re: How to tap into an NNTP session for debugging?
Date: Thu, 26 Sep 2002 06:34:42 GMT
From: AlfredReibenschuh <alfredreibenschuh@gmx.net>
References: <slrnap4e2m.lq1.ese002@spica.exile.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.modules.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.bredband.com!bredband!news01.chello.se!newsrouter.chello.at!news.chello.at.POSTED!53ab2750!not-for-mail
Newsgroups: comp.lang.perl.modules,news.software.nntp,comp.unix.solaris
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 29
NNTP-Posting-Host: 212.186.84.216
X-Complaints-To: abuse@news.chello.at
X-Trace: news.chello.at 1033022082 212.186.84.216 (Thu, 26 Sep 2002 08:34:42 MEST)
NNTP-Posting-Date: Thu, 26 Sep 2002 08:34:42 MEST
Organization: Customers chello Austria