Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

Perl question

When I attempt multiple get() cmnds within my FTP session,
although I receive all of the files successfully, without
any errors, the subsequent call to close() hangs.  When I
run it with the -w switch, I get the following warnings
which may or may not be of interest:

No such signal: SIGALRM at C:\usr\perl\lib/IO/Socket.pm line 206.
No such signal: SIGALRM at C:\usr\perl\lib/IO/Socket.pm line 206.
No such signal: SIGALRM at C:\usr\perl\lib/IO/Socket.pm line 571.

Thanks very much for any help you might give.

Dave Griffin

New Comment:

In order to determine the contents of %SIG, I executed the following:

@SIG = %SIG;
print "@SIG\n";

and received the following:
10  ILL  20  12  13  BREAK  14  16  17  ABRT  18  19  INT  1  3  5  SEGV  6  7  TERM  9  FPE

I'll check it out, but I just have a gut feeling it is'nt a
signal thing.  My guess is that, at the TCP level, a response to the close request is getting dropped somewhere.
Is there any signal handling involved in processing that
acknowledgement?
0
ryry
Asked:
ryry
  • 3
  • 3
1 Solution
 
ozoCommented:
What signals are avaliable under NT?
(what is in keys(%SIG)?)
0
 
ryryAuthor Commented:
Edited text of question
0
 
ozoCommented:
Sure enough, no ALRM.  Do you know if there's an equivalent under NT?
Maybe $SIG{14}?  Does NT have an alarm system call?

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ryryAuthor Commented:
Edited text of question
0
 
ryryAuthor Commented:
Edited text of question
0
 
ozoCommented:
Yes, alarm clock signals are used to implement time outs.
(which could conceivable be related to hanging behavior...)
0
 
mat041897Commented:
Try unbuffering the socket handle.
eg:
 select ((select(SOCKET), $|=1)[0];
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now