git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13945 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-06-25 01:07:03 +00:00
parent b5f08ca5ce
commit e7c9b34b8d

View File

@ -227,19 +227,7 @@ channelRead(TChannel * const channelP,
struct socketUnix * const socketUnixP = channelP->implP; struct socketUnix * const socketUnixP = channelP->implP;
int rc; int rc;
fd_set rfds, efds; rc = recv(socketUnixP->fd, buffer, bufferSize, 0);
struct timeval tv = { 10, 0 };
FD_ZERO(&rfds);
FD_ZERO(&efds);
FD_SET(socketUnixP->fd, &rfds);
FD_SET(socketUnixP->fd, &efds);
if ((rc = select(socketUnixP->fd + 1, &rfds, NULL, &efds, &tv)) > 0) {
rc = recv(socketUnixP->fd, buffer, bufferSize, 0);
} else {
rc = -1;
}
if (rc < 0) { if (rc < 0) {
*failedP = TRUE; *failedP = TRUE;