tobold.org

correct • elegant • free

△ comp.lang.perl △

◅ Cleaning up defunct processes on SunOS

simultaneous dbmopen ▻

Notorious problem with sockets and POP3 - please give me a clue

In article <32fa17ca.21597826@news.alt.net>, Gary <gniemcew@dti.net> wrote:
>The problem is that no matter what I do -  the script connects just
>fine, I am getting the OK+ welcome line, debug tols me I got through
>the print SOCKET all right, but after that  - the script just hangs,

Because the SOCKET filehandle is buffered, and you haven't written
"enough" data to it.  Set SOCKET to be autoflushed...

    select SOCKET; $| = 1; select STDOUT;

Tim.
--
Tim Goodwin   | "A language needs both intestines and guts." -- Larry Wall

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.perl.misc
Subject: Re: Notorious problem with sockets and POP3 - please give me a clue
Date: 5 Feb 1997 14:00:00 GMT
Organization: UUNET PIPEX
Message-ID: <5da3p0$7vi@join.news.pipex.net>
References: <32fa17ca.21597826@news.alt.net>

△ comp.lang.perl △

◅ Cleaning up defunct processes on SunOS

simultaneous dbmopen ▻