Solved

Perl question

Posted on 1997-09-11
7
335 Views
Last Modified: 2010-05-18
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
Comment
Question by:ryry
  • 3
  • 3
7 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1206237
What signals are avaliable under NT?
(what is in keys(%SIG)?)
0
 

Author Comment

by:ryry
ID: 1206238
Edited text of question
0
 
LVL 84

Expert Comment

by:ozo
ID: 1206239
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:ryry
ID: 1206240
Edited text of question
0
 

Author Comment

by:ryry
ID: 1206241
Edited text of question
0
 
LVL 84

Expert Comment

by:ozo
ID: 1206242
Yes, alarm clock signals are used to implement time outs.
(which could conceivable be related to hanging behavior...)
0
 

Accepted Solution

by:
mat041897 earned 100 total points
ID: 1206243
Try unbuffering the socket handle.
eg:
 select ((select(SOCKET), $|=1)[0];
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
use perl to insert into MySQL database 9 144
problem with using the glob function 1 74
Perl script not writing to .csv file 6 111
Awk Question 2 129
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question