Extra helping of logging
@@ -371,10 +371,11 @@ int picoquic_packet_loop(picoquic_quic_t* quic,
(struct sockaddr*)&peer_addr, (struct sockaddr*)&local_addr, if_index,
(const char*)send_buffer, (int)send_length, (int)send_msg_size, &sock_err);
- if (sock_ret != (int)send_length && sock_ret > 0){
if (last_cnx != NULL) {
picoquic_log_app_message(last_cnx, "sendmsg(%zu, %zu) => %d, err=%d", send_length, send_msg_size, sock_ret, sock_err);
}
+
+ if (sock_ret != (int)send_length && sock_ret > 0){
if (send_msg_ptr != NULL && send_length > send_msg_size) {
sock_ret = -1;
sock_err = EIO;
