Changeset 4426 for pjproject/branches/1.x/pjlib/src/pj/ioqueue_common_abs.c
- Timestamp:
- Mar 7, 2013 5:08:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjlib/src/pj/ioqueue_common_abs.c
r3553 r4426 284 284 struct write_operation *write_op; 285 285 pj_ssize_t sent; 286 pj_status_t send_rc ;286 pj_status_t send_rc = PJ_SUCCESS; 287 287 288 288 /* Get the first in the queue. */ … … 313 313 //write_op->op = 0; 314 314 } else if (write_op->op == PJ_IOQUEUE_OP_SEND_TO) { 315 int retry ;316 for (retry=0; retry<2; ++retry) {315 int retry = 2; 316 while (--retry >= 0) { 317 317 send_rc = pj_sock_sendto(h->fd, 318 318 write_op->buf+write_op->written, … … 946 946 PJ_CHECK_STACK(); 947 947 948 #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 949 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 948 950 retry_on_restart: 951 #endif 952 949 953 /* Check if key is closing. */ 950 954 if (IS_CLOSING(key))
Note: See TracChangeset
for help on using the changeset viewer.