[email protected] (Rob Newberry) writes:
>But the âreadâ call takes 25 seconds or more!
That's your application.
If configured with ",default" it sets all control characters to
_POSIX_VDISABLE, including the 'VMIN' and 'VTIME' characters.
socket-utils.c:889
FETCH_TERMIOS();
for (i=0; i < NCCS; i++) {
tios.c_cc[i] = _POSIX_VDISABLE;
}
but
If the value of one of the changeable special control characters (see
Special Characters) is {_POSIX_VDISABLE}, that function is disabled; that
is, no input data is recognized as the disabled special character. If
ICANON is not set, the value of {_POSIX_VDISABLE} has no special meaning
for the VMIN and VTIME entries of the c_cc array.
_POSIX_VDISABLE is '\377', so your read waits for 255 chars and times
out after 255 tenth of a second.
Greetings,
--
--
Michael van Elst
Internet: [email protected]
"A potential Snark may lurk in every tree."