Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
hi,

I have really annoying socket problem. I use IO::Socket, because its easy to use. However, I keep having problems when the link breaks between the computer where script which fills the database is, and the computer which provides data, because of, for example, hub problems, or cable failure or something else. My script, just continues to work without doing anything, regardless of timeout that I've set in sockets. In my script there are actually two sockets. The first one is the main which accesses the sources of data (because there are multiple sources). The other one takes all there is in the current source (and there can be many files and data). When this second socket is done, the first one goes to the second source, etc .. Is it may be the problem because i'm using two sockets ? When there is no link-break between two machines everything works fine and this works nearly half of the year without any problem, but when maintenance changes cable or hub or anything else it just goes on and on without doing anything!!!

.. but I've set timeout in both sockets to 2

thanks

We are using Apache as socket server, but I'm not sure if that could be a problem. I've read everything there is about sockets, but without any luck!

In reply to unknown socket problem by Alex the Serb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found