Ask a Question related to PERL Beginners, Design and Development.
-
Sam Masiello #1
Timing out without alarm function
Hi all!
I am new to the list, and have a question which I hope isn't too
difficult to answer.
I have a script where I am sending some data over a socket, but after X
seconds I want the operation to time out. I am currently using alarm to
enforce the timeout, but I don't want the script to die. I want a way
to be able to gracefully move onto a different part of the script or
return some value.
I am using a timeout value when creating the socket, but this timeout is
not enforced once the socket connection has been established and
back-and-forth communication is occurring. I am trying to allot for a
hang in the middle of the connection.
Thank you in advance for any suggestions!
--Sam
Sam Masiello Guest
-
Zone Alarm blocks flash????
Bear with me, I'm not up on computer terms but here goes...I have Zone Alarm security suite and the latest version (I think) of IE. Had some... -
HDR Replication and event alarm log backup
Hi Folks, I got replication up and running finally. The process was as described in the manuals and everything looks good for now. The on bar alarm... -
usleep and alarm clock
Hi, I recently changed some code, from sleep() to usleep(), and now my program is suddenly terminating with an error string of "Alarm clock" being... -
Alarm program on IDS9.30UC1
abdoell wrote: What do IBM Informix tech support say? Cheers, -- Mark. ... -
Zone Alarm
Are there any known compatability issues with WindowsXP and Zone Alarm Pro firwall software? Thank you. -
Daniel Staal #2
Re: Timing out without alarm function
--As off Tuesday, February 3, 2004 10:09 AM -0700, Sam Masiello is
alleged to have said:
--As for the rest, it is mine.> I have a script where I am sending some data over a socket, but
> after X seconds I want the operation to time out. I am currently
> using alarm to enforce the timeout, but I don't want the script to
> die. I want a way to be able to gracefully move onto a different
> part of the script or return some value.
What you need to do is catch the signal: perldoc perlipc
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
Daniel Staal Guest
-
Sam Masiello #3
RE: Timing out without alarm function
Thank you very much, Daniel!
--Sam
Daniel Staal wrote:> --As off Tuesday, February 3, 2004 10:09 AM -0700, Sam Masiello is
> alleged to have said:
>>>> I have a script where I am sending some data over a socket, but after
>> X seconds I want the operation to time out. I am currently using
>> alarm to enforce the timeout, but I don't want the script to die. I
>> want a way to be able to gracefully move onto a different part of the
>> script or return some value.
> --As for the rest, it is mine.
>
> What you need to do is catch the signal: perldoc perlipc
>
> Daniel T. Staal
>
> ---------------------------------------------------------------
> This email copyright the author. Unless otherwise noted, you are
> expressly allowed to retransmit, quote, or otherwise use the contents
> for non-commercial purposes. This copyright will expire 5 years
> after the author's death, or in 30 years, whichever is longer, unless
> such a period is in excess of local copyright law.
> ---------------------------------------------------------------Sam Masiello Guest



Reply With Quote

