Low Speed QTCPSocket on Win7
-
How did you test it? How do you define slow? High latency? Low bandwidth? Long connection setup/tear-down? Under what conditions? Where was the remote end? Did you rely on DNS and is your DNS server responsive? Any firewalls, proxying, or filtering going on?
-
I disabled all controllers such as firewalls, network monitors, antivirus. I tried my app on virtual machine that runs WinXP. VM uses same network settings on host OS. It's ok there. this means that there's no problem in device driver, connection or dns or dhcp settings or anything. right?
It's very slow on establishing connection from client to server only on Win7. -
Finally i fixed the problem.
Report:
The problem is where i use both applications (Client and Server) on single pc. So i have to set local IP Address ("127.0.0.1") instead of "localhost" on QTCPSocket HostName property. using "localhost" takes time to find the local IP address.Thanks Zap.
-
-
what's the bit of your OS? 32 or 64 bit? one of my friends is having the same problem. His OS is Win7 32-bit OS.
-
[quote author="Mohsen" date="1320060819"]when using "localhost" windows sends a DNS request to domain suffix search list to discover proxy servers via Auto Discovery Protocol. [/quote]
This problem seems to be related on how Microsoft handles IPv4 and IPv6, If I get it right, this strange behavior is implemented in order to ensure that if you disable IPv4 and do a DNS query for another IPv4 address you don't get such query going thru the loopback interface (that is tied to an IPv4 address: 127.0.0.1).
Beside this, I consider doing a DNS lookup for localhost a stupid thing, and a sure way for an attack to come. Any other comments could sound a little rude...