|
Next: Apache mod for session affinity
|
| Author |
Message |
External

Since: Jul 29, 2004 Posts: 22
|
(Msg. 1) Posted: Mon Jul 12, 2004 9:02 pm
Post subject: How to check a connection Archived from groups: alt>www>webmaster (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Jul 12, 2004 Posts: 88
|
(Msg. 2) Posted: Mon Jul 12, 2004 9:36 pm
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Chris Michael wrote:
> However, the server that mms.dll is hosted on is sometimes
> down, and there is another webaddess from which I can access the file. How
> can a check to see which of the two files I can connect to BEFORE attempting
> to connect to it?
ping?
--
Toby A Inkster BSc (Hons) ARCS
Contact Me - <a style='text-decoration: underline;' href="http://www.goddamn.co.uk/tobyink/?page=132" target="_blank">http://www.goddamn.co.uk/tobyink/?page=132</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2004 Posts: 22
|
(Msg. 3) Posted: Mon Jul 12, 2004 10:11 pm
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Toby Inkster" <usenet200407.TakeThisOut@tobyinkster.co.uk> wrote in message
news:pan.2004.07.12.17.36.03.805789@tobyinkster.co.uk
|| Chris Michael wrote:
||
||| However, the server that mms.dll is hosted on is sometimes
||| down, and there is another webaddess from which I can access the
||| file. How can a check to see which of the two files I can connect
||| to BEFORE attempting to connect to it?
||
|| ping?
I've heard of "pinging" but don't know how to do it in a web page. I'll try
googling it and see what I come up with.
Thanks,
--
Chris Michael
www.INTOmobiles.com >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Apr 25, 2004 Posts: 91
|
(Msg. 4) Posted: Mon Jul 12, 2004 10:55 pm
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
*Chris Michael* wrote:
> "Toby Inkster" <usenet200407.TakeThisOut@tobyinkster.co.uk> wrote in message
> news:pan.2004.07.12.17.36.03.805789@tobyinkster.co.uk
>>> Chris Michael wrote:
>>>
>>>> However, the server that mms.dll is hosted on is sometimes
>>>> down, and there is another webaddess from which I can access the
>>>> file. How can a check to see which of the two files I can connect
>>>> to BEFORE attempting to connect to it?
>>>
>>> ping?
>
> I've heard of "pinging" but don't know how to do it in a web page.
> I'll try googling it and see what I come up with.
The ping will tell you that the machine is up but that doesn't
necessarily mean that the web server is up and serving. You could try a
HEAD request on mms.dll or another file on the server but this (or
running a ping) might take more time to execute than actually making a
request for mms.dll and using a short timeout.
--
Andrew Urquhart
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Sep 19, 2003 Posts: 3499
|
(Msg. 5) Posted: Mon Jul 12, 2004 11:40 pm
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Chris Michael wrote:
> ...
> How can a check to see which of the two files I can
> connect to BEFORE attempting to connect to it?
Can you not just make the connection and trap the error?
You could get real sophisticated and measure the success rate of each server
so you have dynamic analysis and can first try the statistically best
performing server.
--
William Tasso<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jun 28, 2004 Posts: 240
|
(Msg. 6) Posted: Tue Jul 13, 2004 2:40 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Andrew Urquhart wrote:
> *Chris Michael* wrote:
>
>>"Toby Inkster" <usenet200407 RemoveThis @tobyinkster.co.uk> wrote in message
>>news:pan.2004.07.12.17.36.03.805789@tobyinkster.co.uk
>>
>>>>Chris Michael wrote:
>>>>
>>>>
>>>>>However, the server that mms.dll is hosted on is sometimes
>>>>>down, and there is another webaddess from which I can access the
>>>>>file. How can a check to see which of the two files I can connect
>>>>>to BEFORE attempting to connect to it?
>>>>
>>>>ping?
>>
>>I've heard of "pinging" but don't know how to do it in a web page.
>>I'll try googling it and see what I come up with.
>
>
> The ping will tell you that the machine is up but that doesn't
> necessarily mean that the web server is up and serving. You could try a
> HEAD request on mms.dll or another file on the server but this (or
> running a ping) might take more time to execute than actually making a
> request for mms.dll and using a short timeout.
Do people really leave ICMP open these days? I thought almost all
firewalls didn't reply to pings.
--
x theSpaceGirl (miranda)
# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Apr 25, 2004 Posts: 91
|
(Msg. 7) Posted: Tue Jul 13, 2004 2:45 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
*SpaceGirl* wrote:
> *Andrew Urquhart* wrote:
>> *Chris Michael* wrote:
>>> I've heard of "pinging" but don't know how to do it in a web page.
>> [snip]
>> The ping will tell you that the machine is up but that doesn't
>> necessarily mean that the web server is up and serving.
[snip]
> Do people really leave ICMP open these days? I thought almost all
> firewalls didn't reply to pings.
Ah, yes, good point!  )
--
Andrew Urquhart
- FAQ: <a style='text-decoration: underline;' href="http://www.aww-faq.org" target="_blank">www.aww-faq.org</a>
- My reply address is invalid, see <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2004 Posts: 22
|
(Msg. 8) Posted: Tue Jul 13, 2004 4:04 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"SpaceGirl" <NOspaceSPAMgirl RemoveThis @subhuman.net> wrote in message
news:2lgibcFcf15tU1@uni-berlin.de
|| Andrew Urquhart wrote:
||
||| *Chris Michael* wrote:
|||
|||| "Toby Inkster" <usenet200407 RemoveThis @tobyinkster.co.uk> wrote in message
|||| news:pan.2004.07.12.17.36.03.805789@tobyinkster.co.uk
||||
|||||| Chris Michael wrote:
||||||
||||||
||||||| However, the server that mms.dll is hosted on is sometimes
||||||| down, and there is another webaddess from which I can access the
||||||| file. How can a check to see which of the two files I can
||||||| connect to BEFORE attempting to connect to it?
||||||
|||||| ping?
||||
|||| I've heard of "pinging" but don't know how to do it in a web page.
|||| I'll try googling it and see what I come up with.
|||
|||
||| The ping will tell you that the machine is up but that doesn't
||| necessarily mean that the web server is up and serving. You could
||| try a HEAD request on mms.dll or another file on the server but
||| this (or running a ping) might take more time to execute than
||| actually making a request for mms.dll and using a short timeout.
||
|| Do people really leave ICMP open these days? I thought almost all
|| firewalls didn't reply to pings.
I can't seem to ping the server at all, even though I know for sure that
it's up, I just get a timed out message. I guess the reason behind this is,
as SpaceGirl mentioned, the firewall isn't replying to pings, but I'll
double check tomorrow.
--
Chris Michael
www.INTOmobiles.com >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2004 Posts: 22
|
(Msg. 9) Posted: Tue Jul 13, 2004 4:05 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"William Tasso" <SpamBlocked.DeleteThis@tbdata.com> wrote in message
news:2lg7goFckbfmU1@uni-berlin.de
|| Chris Michael wrote:
||| ...
||| How can a check to see which of the two files I can
||| connect to BEFORE attempting to connect to it?
||
|| Can you not just make the connection and trap the error?
Well, I googled for help with trapping the error but gave up quite quickly
after I read in a few different places that it wasn't possible to trap this
type of error.
The error that I get is "A connection with the server could not be
established".
--
Chris Michael
www.INTOmobiles.com
Free ringtones/logos
Free mobile alerts
3 months free insurance >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Sep 19, 2003 Posts: 3499
|
(Msg. 10) Posted: Tue Jul 13, 2004 10:47 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Chris Michael wrote:
> "William Tasso" <SpamBlocked.TakeThisOut@tbdata.com> wrote in message
> news:2lg7goFckbfmU1@uni-berlin.de
>>> Chris Michael wrote:
>>>> ...
>>>> How can a check to see which of the two files I can
>>>> connect to BEFORE attempting to connect to it?
>>>
>>> Can you not just make the connection and trap the error?
>
> Well, I googled for help with trapping the error but gave up quite
> quickly after I read in a few different places that it wasn't
> possible to trap this type of error.
Sorry, I can't see that. An error is an error. There must be a way to trap
it even if merely by checking the value of the returned data.
> The error that I get is "A connection with the server could not be
> established".
It's a start.
What platform is your code running on? What module/app/system is returning
the error?
--
William Tasso<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jul 09, 2004 Posts: 446
|
(Msg. 11) Posted: Tue Jul 13, 2004 11:39 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
in post: <news:2lgibcFcf15tU1@uni-berlin.de>
SpaceGirl <NOspaceSPAMgirl.RemoveThis@subhuman.net> said:
> Do people really leave ICMP open these days? I thought almost all
> firewalls didn't reply to pings.
i'll open my ports for anyone but i'm a slut.
--
b r u c i e<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jun 28, 2004 Posts: 240
|
(Msg. 12) Posted: Tue Jul 13, 2004 11:39 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
brucie wrote:
> in post: <news:2lgibcFcf15tU1@uni-berlin.de>
> SpaceGirl <NOspaceSPAMgirl.TakeThisOut@subhuman.net> said:
>
>
>>Do people really leave ICMP open these days? I thought almost all
>>firewalls didn't reply to pings.
>
>
> i'll open my ports for anyone but i'm a slut.
>
I know, it's on your business card. But there's no need to broadcast it
in here! You'll never cope with all the new clients!
Or... something. God... I'm so tired I'm just coasting here. Someone
drag me to bed for godsake!
zzzzzzzZZZZZZZZZZZZZZZZZZZZzzzzzzzzzzzzzzzzzzzzzz
--
x theSpaceGirl (miranda)
# lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
# remove NO SPAM to email, or use form on website #<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Sep 14, 2004 Posts: 2384
|
(Msg. 13) Posted: Tue Jul 13, 2004 11:39 am
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
SpaceGirl wrote:
> Or... something. God... I'm so tired I'm just coasting here. Someone
> drag me to bed for godsake!
Me me me!
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://CharlesSweeney.com" target="_blank">http://CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Oct 23, 2003 Posts: 137
|
(Msg. 14) Posted: Tue Jul 13, 2004 3:14 pm
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
SpaceGirl wrote:
>> The ping will tell you that the machine is up but that doesn't
>> necessarily mean that the web server is up and serving. You could try a
>> HEAD request on mms.dll or another file on the server but this (or
>> running a ping) might take more time to execute than actually making a
>> request for mms.dll and using a short timeout.
>
> Do people really leave ICMP open these days? I thought almost all
> firewalls didn't reply to pings.
>
To a properly constructed firewall ping can be allowed, just set the rate to
a loow value say 1 every second and your fine.
--
There are 10 types of people in this world
Those that understand binary and those that don't<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |
External

Since: Jul 12, 2004 Posts: 88
|
(Msg. 15) Posted: Wed Jul 14, 2004 2:08 pm
Post subject: Re: How to check a connection [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
SpaceGirl wrote:
> Do people really leave ICMP open these days? I thought almost all
> firewalls didn't reply to pings.
> # lead designer @ <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">http://www.dhnewmedia.com</a> #
[tai@ophelia (pts/1) ~]$ ping -c4 <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">www.dhnewmedia.com</a>
PING <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">www.dhnewmedia.com</a> (66.245.184.192) 56(84) bytes of data.
64 bytes from 66.245.184.192: icmp_seq=1 ttl=111 time=103 ms
64 bytes from 66.245.184.192: icmp_seq=2 ttl=111 time=108 ms
64 bytes from 66.245.184.192: icmp_seq=3 ttl=111 time=105 ms
64 bytes from 66.245.184.192: icmp_seq=4 ttl=111 time=105 ms
--- <a style='text-decoration: underline;' href="http://www.dhnewmedia.com" target="_blank">www.dhnewmedia.com</a> ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3029ms
rtt min/avg/max/mdev = 103.652/105.859/108.457/1.756 ms
--
Toby A Inkster BSc (Hons) ARCS
Contact Me - <a style='text-decoration: underline;' href="http://www.goddamn.co.uk/tobyink/?page=132" target="_blank">http://www.goddamn.co.uk/tobyink/?page=132</a><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: How to check a connection |
|
| Back to top |
|
 |  |