alex / alex/what-happens-when

Networking, DHCP, and sleep (happens to be important, btw)

Offen
#132 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
43.3k
Forks
5.7k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

No network operations can proceed until the PC has established it's networking, which introduces an interesting problem (one which annoys me greatly):
Most machines use DHCP to get an IP address and name servers etc - no big deal - but what happens when you put your PC to sleep?
When your PC wakes up, if it's DHCP lease has expired, it needs to get a new one - so while you're busy typing "google.com" into your browser, your PC is usually still busy figuring out what IP address to use. If you hit "enter" before this is complete, your browser will attempt to resolve the domain name "google.com", and will _fail_ (after some time waiting), so the next thing the browser will try and do, is assume you did not type a domain/URL in there (since it didn't resolve, because your network wan't ready), and redirect you to the default web search engine using what you typed in as a search term.
This usually takes long enough, that by this time, DHCP has completed and you now have an internet connection, so instead of going to "google.com" - you might find yourself looking at a "bing.com" web page, and the search results for the search term "google.com".

The reason this annoys me? Google AdWords. I end up paying for my customers to click on my own advert, because google's (or most others) browser _searched_ for my customers request (my actual domain!), instead of taking them to my web site - and, surprise surprise, no matter how hard you argue, google refuse to refund you for clicks you pay for in this situation - even though it's clearly a fraudulent hijacking of my customers intent)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.