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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.