EAGAIN unless we didn't read an entire line. If there is a newline at the
end if the read buffer, break, because we got the whole thing.
(reported and patched by bmd)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84236
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (res != NULL && !agi->fast)
break;
buflen = strlen(buf);
+ if (buflen && buf[buflen - 1] == '\n')
+ break;
len -= buflen;
if (agidebug)
ast_verbose( "AGI Rx << temp buffer %s - errno %s\n", buf, strerror(errno));