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
|
|