mbroadst / qamqp

AMQP 0.9.1 implementation for Qt
Other
151 stars 127 forks source link

Hostname resolution #56

Closed MangoCats closed 7 years ago

MangoCats commented 7 years ago

I am having very good performance and results using raw IP addresses (10.10.10.100 192.168.1.100 etc.) but when I try to use a hostname instead, I cannot connect to the rabbit server (connectToHost myhostname:5672 -> socketError 2).

On the same machine, ping of myhostname works correctly... these are mostly ubuntu and raspbian machines I'm testing on, similar results on both.

Any ideas?

Thanks,

mbroadst commented 7 years ago

@MangoCats sounds like you have resolution issues on your system that are out of scope for this library. Internally QAMQP is using QAbstractSocket::connectToHost which internally uses the socket engine to resolve hostnames.