@@ -1589,15 +1589,15 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
15891589 /* check timeout first */
15901590 if (!(session -> flags & NC_SESSION_CALLHOME ) && !nc_session_get_notif_status (session ) && server_opts .idle_timeout &&
15911591 (now_mono >= session -> opts .server .last_rpc + (unsigned ) server_opts .idle_timeout )) {
1592- sprintf (msg , "session idle timeout elapsed" );
1592+ sprintf (msg , "Session idle timeout elapsed" );
15931593 session -> status = NC_STATUS_INVALID ;
15941594 session -> term_reason = NC_SESSION_TERM_TIMEOUT ;
15951595 return NC_PSPOLL_SESSION_TERM | NC_PSPOLL_SESSION_ERROR ;
15961596 }
15971597
15981598 r = nc_session_io_lock (session , io_timeout , __func__ );
15991599 if (r < 0 ) {
1600- sprintf (msg , "session IO lock failed to be acquired" );
1600+ sprintf (msg , "Session IO lock failed to be acquired" );
16011601 return NC_PSPOLL_ERROR ;
16021602 } else if (!r ) {
16031603 return NC_PSPOLL_TIMEOUT ;
@@ -1660,7 +1660,7 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
16601660 /* no data pending in the SSL buffer, poll fd */
16611661 pfd .fd = SSL_get_rfd (session -> ti .tls );
16621662 if (pfd .fd < 0 ) {
1663- sprintf (msg , "internal error (%s:%d)" , __FILE__ , __LINE__ );
1663+ sprintf (msg , "Internal error (%s:%d)" , __FILE__ , __LINE__ );
16641664 ret = NC_PSPOLL_ERROR ;
16651665 break ;
16661666 }
@@ -1669,17 +1669,17 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
16691669 r = poll (& pfd , 1 , 0 );
16701670
16711671 if ((r < 0 ) && (errno != EINTR )) {
1672- sprintf (msg , "poll failed (%s)" , strerror (errno ));
1672+ sprintf (msg , "Poll failed (%s)" , strerror (errno ));
16731673 session -> status = NC_STATUS_INVALID ;
16741674 ret = NC_PSPOLL_ERROR ;
16751675 } else if (r > 0 ) {
16761676 if (pfd .revents & (POLLHUP | POLLNVAL )) {
1677- sprintf (msg , "communication socket unexpectedly closed" );
1677+ sprintf (msg , "Communication socket unexpectedly closed" );
16781678 session -> status = NC_STATUS_INVALID ;
16791679 session -> term_reason = NC_SESSION_TERM_DROPPED ;
16801680 ret = NC_PSPOLL_SESSION_TERM | NC_PSPOLL_SESSION_ERROR ;
16811681 } else if (pfd .revents & POLLERR ) {
1682- sprintf (msg , "communication socket error" );
1682+ sprintf (msg , "Communication socket error" );
16831683 session -> status = NC_STATUS_INVALID ;
16841684 session -> term_reason = NC_SESSION_TERM_OTHER ;
16851685 ret = NC_PSPOLL_SESSION_TERM | NC_PSPOLL_SESSION_ERROR ;
@@ -1702,17 +1702,17 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
17021702 r = poll (& pfd , 1 , 0 );
17031703
17041704 if ((r < 0 ) && (errno != EINTR )) {
1705- sprintf (msg , "poll failed (%s)" , strerror (errno ));
1705+ sprintf (msg , "Poll failed (%s)" , strerror (errno ));
17061706 session -> status = NC_STATUS_INVALID ;
17071707 ret = NC_PSPOLL_ERROR ;
17081708 } else if (r > 0 ) {
17091709 if (pfd .revents & (POLLHUP | POLLNVAL )) {
1710- sprintf (msg , "communication socket unexpectedly closed" );
1710+ sprintf (msg , "Communication socket unexpectedly closed" );
17111711 session -> status = NC_STATUS_INVALID ;
17121712 session -> term_reason = NC_SESSION_TERM_DROPPED ;
17131713 ret = NC_PSPOLL_SESSION_TERM | NC_PSPOLL_SESSION_ERROR ;
17141714 } else if (pfd .revents & POLLERR ) {
1715- sprintf (msg , "communication socket error" );
1715+ sprintf (msg , "Communication socket error" );
17161716 session -> status = NC_STATUS_INVALID ;
17171717 session -> term_reason = NC_SESSION_TERM_OTHER ;
17181718 ret = NC_PSPOLL_SESSION_TERM | NC_PSPOLL_SESSION_ERROR ;
@@ -1724,7 +1724,7 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
17241724 }
17251725 break ;
17261726 case NC_TI_NONE :
1727- sprintf (msg , "internal error (%s:%d)" , __FILE__ , __LINE__ );
1727+ sprintf (msg , "Internal error (%s:%d)" , __FILE__ , __LINE__ );
17281728 ret = NC_PSPOLL_ERROR ;
17291729 break ;
17301730 }
0 commit comments