Web Connection
Problem with PING
Gravatar is a globally recognized avatar based on your email address. Problem with PING
  Michael B
  All
  Jul 15, 2022 @ 01:43pm

Hi Rick,

Is it unsafe to try and ping random domains inside of a WWWC method? I ask because when using ping to hit my own domain, my app locks in what appears to be a loop. Since its a windows api call I cannot easily debug, but here's a screenshot of where the hang is.

I do have a firewall in front of the domain (sophio.com).

Thanks in advance.

Gravatar is a globally recognized avatar based on your email address. re: Problem with PING
  Rick Strahl
  Michael B
  Jul 15, 2022 @ 02:12pm

Not a good idea - if you try to ping something that is slow or hanging you'll hang your app as you can't specify a timeout - it'll hang for 15 seconds which is the default TCP/IP timeout window.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Problem with PING
  Michael B
  Rick Strahl
  Jul 15, 2022 @ 02:47pm

I was thinking you might tell me 'dude, upgrade to latest, your ipstuff is old or dotnetbridge...' Duly noted!

ps: I was asked by a third party to 'ping' the endpoint if we can't connect which would in turn 'turn it on' (ridiculous).

Gravatar is a globally recognized avatar based on your email address. re: Problem with PING
  Rick Strahl
  Michael B
  Jul 15, 2022 @ 03:39pm

Are you sure that 'ping' in this context means an actual PING request or whether 'ping' just means hit the site once and it'll start up. Thinking the latter. I doubt they have infrastructure to intercept Ping requests and use that to start up a server - that would be beyond dumb and non-standard.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Problem with PING
  Michael B
  Rick Strahl
  Jul 16, 2022 @ 08:18am

Good point, no is the answer. I will just send an empty http post to 'wake up' the connection. I agree with your comment...

Thanks!

© 1996-2022