Click to See Complete Forum and Search --> : problem with gethostbyname


G81
July 18th, 2007, 04:09 PM
I'm using gethostbyname function from C code on linux.
During debugging, I saw that my program stucks (or entering an endless loop or a very long delay) when it invokes gethostbyname function.
Maybe someone knows how this problem can be solved or what causes it?

S_M_A
July 18th, 2007, 04:22 PM
Have never experienced that. Are you sure name is valid? Slow DNS maybe?