🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266528

Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)

#266528
From: Bernd Rose
Date: Sun, 07 Jan 2024 08:10
46 lines
2989 bytes
On Sat, 6th Jan 2024 23:08:44 -0500, Ronald wrote:

>  1 25674390: NNTP slot used by this thread: neodome Username ok1 [$0000250C]
>  3 25674390: Connecting to NNTP 127.0.0.1:55555 [$0000250C]
[...]
>  0 25675484: !Quit (Finished) [$0000250C]
>  5 25675484: Socket Error # 0;  (neodome Username ok) (Finished) [$0000250C]
[...] 
> The line I don't understand is that the error is a Dialog "socket error".
> What's that?

A socket is a dedicated connection established by the OS between a program
and an IP-address:port combination. Several such sockets can exist in
parallel at any certain time, just not with the same parameters.

"Socket error # 0" isn't a normal Socket error number. It will be returned
by the Indy network functions (a Delphi network library used by Dialog),
when no connection could be established, at all.

From above information it seems, you set up your connection to the Neodome
server inside Dialog to connect to localhost (127.0.0.1) on port 55555.
User name and password for the Neodome server have to be entered inside the
Dialog connection settings, as well. You must /not/ tick on the SSL box, 
though, because with above parameters you most likely want to use a more 
up-to-date program for managing the encryption.

You are probably using sTunnel as an intermediate for encrypted connections.
With above parameters you need to set up sTunnel to accept local connections
from port 55555 and forward them encrypted to the Neodome NNTP server:

[Neodome]
client = yes
accept = localhost:55555
connect = news.neodome.net:563
verifyChain = yes
CAfile = ca-certs.pem
checkHost = news.neodome.net
OCSPaia = yes

Please check, if sTunnel is running at all. And if the connection parameters
are set correctly. (Especially, that no 2 connection sections using the same
/internal/ port number [55555 in this case].) If this all seems okay, check 
the sTunnel log file for further information.

HTH.
Bernd
Technical Details
Message-ID: <302brvey53rn$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <und7gj$srbd$1@paganini.bofh.team> <und84c$ssl1$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <302brvey53rn$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
Date: Sun, 7 Jan 2024 09:10:13 +0100
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <und7gj$srbd$1@paganini.bofh.team> <und84c$ssl1$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Supersedes: <8i5ojjyfgn67$.dlg@b.rose.tmpbox.news.arcor.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org;
User-Agent: 40tude_Dialog/2.0.15.41 (4c75ff17.194.259)
Cancel-Key: sha1:asjYtEUPBX0xcbSE25vD7Ljy1zE=
Cancel-Lock: sha1:izqotPldCbGoaPBMT0SbZmY/ecc=
X-User-ID: eJwNwocRA0EIBLCWgCWWQ/D1X8J7JIOzb6ibq72/5iuJ3DWqbqYdEMv0r4+ACEM8+CRj5apCy2zyIM3NrsBmmuoW5durD7NqGP0=