Changeset 5980 for pjproject/trunk/pjlib/src/pj/ioqueue_select.c
- Timestamp:
- May 9, 2019 4:35:41 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ioqueue_select.c
r5849 r5980 751 751 status = pj_sock_getsockname(old_sock, &local_addr, &addr_len); 752 752 if (status != PJ_SUCCESS) { 753 PJ_ LOG(5,(THIS_FILE, "Error get socket name %d", status));753 PJ_PERROR(5,(THIS_FILE, status, "Error get socket name")); 754 754 continue; 755 755 } … … 758 758 status = pj_sock_getpeername(old_sock, &rem_addr, &addr_len); 759 759 if (status != PJ_SUCCESS) { 760 PJ_ LOG(5,(THIS_FILE, "Error get peer name %d", status));760 PJ_PERROR(5,(THIS_FILE, status, "Error get peer name")); 761 761 } else { 762 762 flags |= HAS_PEER_ADDR; … … 767 767 status == PJ_STATUS_FROM_OS(EINVAL)) 768 768 { 769 PJ_ LOG(5,(THIS_FILE, "Error get qos param %d", status));769 PJ_PERROR(5,(THIS_FILE, status, "Error get qos param")); 770 770 continue; 771 771 } 772 772 773 773 if (status != PJ_SUCCESS) { 774 PJ_ LOG(5,(THIS_FILE, "Error get qos param %d", status));774 PJ_PERROR(5,(THIS_FILE, status, "Error get qos param")); 775 775 } else { 776 776 flags |= HAS_QOS; … … 782 782 status = pj_sock_close(old_sock); 783 783 if (status != PJ_SUCCESS) { 784 PJ_ LOG(5,(THIS_FILE, "Error closing socket %d", status));784 PJ_PERROR(5,(THIS_FILE, status, "Error closing socket")); 785 785 } 786 786 … … 792 792 &new_sock); 793 793 if (status != PJ_SUCCESS) { 794 PJ_ LOG(5,(THIS_FILE, "Error create socket %d", status));794 PJ_PERROR(5,(THIS_FILE, status, "Error create socket")); 795 795 continue; 796 796 } … … 805 805 status == PJ_STATUS_FROM_OS(EINVAL)) 806 806 { 807 PJ_LOG(5,(THIS_FILE, "Error set socket option %d", 808 status)); 807 PJ_PERROR(5,(THIS_FILE, status, "Error set socket option")); 809 808 continue; 810 809 } … … 826 825 status = pj_sock_set_qos_params(new_sock, &qos_params); 827 826 if (status == PJ_STATUS_FROM_OS(EINVAL)) { 828 PJ_ LOG(5,(THIS_FILE, "Error set qos param %d", status));827 PJ_PERROR(5,(THIS_FILE, status, "Error set qos param")); 829 828 continue; 830 829 } … … 834 833 status = pj_sock_connect(new_sock, &rem_addr, addr_len); 835 834 if (status != PJ_SUCCESS) { 836 PJ_ LOG(5,(THIS_FILE, "Error connect socket %d", status));835 PJ_PERROR(5,(THIS_FILE, status, "Error connect socket")); 837 836 continue; 838 837 } … … 889 888 890 889 h->fd = PJ_INVALID_SOCKET; 891 PJ_PERROR(1,(THIS_FILE, status, "Error replacing socket [%d]", status));890 PJ_PERROR(1,(THIS_FILE, status, "Error replacing socket %d", old_sock)); 892 891 pj_lock_release(h->ioqueue->lock); 893 892 return PJ_ESOCKETSTOP;
Note: See TracChangeset
for help on using the changeset viewer.