diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-11-06 13:32:11 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-11-06 13:32:11 +0000 |
commit | 97611d9f0a7809a759a0a0603f6d45f5822ad170 (patch) | |
tree | cfef74513d998e880d13bb0da8d1f465559c3861 /pjlib/src/pjlib-test | |
parent | 7c7300624eb867fa7c1ea52b9c636889aac60e80 (diff) |
Put common ioqueue functionalities in separate file to be used by both select() and epoll
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@12 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pjlib-test')
-rw-r--r-- | pjlib/src/pjlib-test/ioq_perf.c | 2 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/ioq_tcp.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/pjlib/src/pjlib-test/ioq_perf.c b/pjlib/src/pjlib-test/ioq_perf.c index 4cd11068..3305fb60 100644 --- a/pjlib/src/pjlib-test/ioq_perf.c +++ b/pjlib/src/pjlib-test/ioq_perf.c @@ -71,7 +71,7 @@ static void on_read_complete(pj_ioqueue_key_t *key, char errmsg[128]; if (rc != last_error) { - last_error = rc; + //last_error = rc; pj_strerror(rc, errmsg, sizeof(errmsg)); PJ_LOG(3,(THIS_FILE, "...error: read error, bytes_read=%d (%s)", bytes_read, errmsg)); diff --git a/pjlib/src/pjlib-test/ioq_tcp.c b/pjlib/src/pjlib-test/ioq_tcp.c index fd5329e5..14813c79 100644 --- a/pjlib/src/pjlib-test/ioq_tcp.c +++ b/pjlib/src/pjlib-test/ioq_tcp.c @@ -179,10 +179,6 @@ static int send_recv_test(pj_ioqueue_t *ioque, pj_get_timestamp(&t2); t_elapsed->u32.lo += (t2.u32.lo - t1.u32.lo); - if (status < 0) { - return -176; - } - // Compare recv buffer with send buffer. if (pj_memcmp(send_buf, recv_buf, bufsize) != 0) { return -180; |