That doesn't make sense. If you want unbuffered I/O on a socket, then set it using Fcntl or using the appropriate socket option. But why not skip "unbuffered" and flush as necessary. This loop is inefficient and serves no obvious purpose. In fact, it may be what's confusing the WHOIS server since your loop is quite possibly sending a packet at a time (system-specific). Perhaps your $write is not '\0' ended which the server may expect? This is really guesswork but the real solution is use the REAL methods of unbuffered I/O. Perhaps since you're iterating through a list of servers, you'll want this to speed things up a bit?
In reply to Re: syswrite strange behaviour on some systems
by AgentM
in thread syswrite strange behaviour on some systems
by dash2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |