Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nanomsg for openSUSE:Factory checked in at 2026-01-12 10:21:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nanomsg (Old) and /work/SRC/openSUSE:Factory/.nanomsg.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nanomsg" Mon Jan 12 10:21:34 2026 rev:10 rq:1326390 version:1.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/nanomsg/nanomsg.changes 2025-10-06 18:07:08.516793724 +0200 +++ /work/SRC/openSUSE:Factory/.nanomsg.new.1928/nanomsg.changes 2026-01-12 10:31:05.125620719 +0100 @@ -1,0 +2,9 @@ +Thu Jan 8 21:04:40 UTC 2026 - Andreas Stieger <[email protected]> + +- update to 1.2.2: + * Fix for TCP client state machine error in bind logic from diff + * Fix for abort when closing file descriptors on POSIX results in + unrecognized errno +- drop fix-chunkref.patch, now included + +------------------------------------------------------------------- Old: ---- fix-chunkref.patch nanomsg-1.2.1.tar.gz New: ---- nanomsg-1.2.2.tar.gz ----------(Old B)---------- Old: unrecognized errno - drop fix-chunkref.patch, now included ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nanomsg.spec ++++++ --- /var/tmp/diff_new_pack.md9G8z/_old 2026-01-12 10:31:06.921694412 +0100 +++ /var/tmp/diff_new_pack.md9G8z/_new 2026-01-12 10:31:06.953695725 +0100 @@ -2,7 +2,7 @@ # spec file for package nanomsg # # Copyright (c) 2025 SUSE LLC and contributors -# Copyright (c) 2024 Andreas Stieger <[email protected]> +# Copyright (c) 2026 Andreas Stieger <[email protected]> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define sover 6 Name: nanomsg -Version: 1.2.1 +Version: 1.2.2 Release: 0 Summary: Socket library providing several common communication patterns License: MIT @@ -27,8 +27,6 @@ URL: https://nanomsg.org/ Source: https://github.com/nanomsg/nanomsg/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: nanomsg-fix-rpath-issue.patch -# https://github.com/nanomsg/nanomsg/issues/1111#issuecomment-2113151297 -Patch1: fix-chunkref.patch BuildRequires: cmake BuildRequires: libtool BuildRequires: pkgconfig @@ -71,7 +69,7 @@ %files -n libnanomsg%{sover} %license COPYING %doc RELEASING AUTHORS README.md -%{_libdir}/libnanomsg.so.* +%{_libdir}/libnanomsg.so.%{sover}{,.*} %files devel %license COPYING ++++++ nanomsg-1.2.1.tar.gz -> nanomsg-1.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/CMakeLists.txt new/nanomsg-1.2.2/CMakeLists.txt --- old/nanomsg-1.2.1/CMakeLists.txt 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/CMakeLists.txt 2025-10-05 18:42:08.000000000 +0200 @@ -24,7 +24,7 @@ # IN THE SOFTWARE. # -cmake_minimum_required (VERSION 2.8.12) +cmake_minimum_required (VERSION 2.8.12...3.5) project (nanomsg C) include (CheckFunctionExists) @@ -298,7 +298,7 @@ endif () endif () -# Build the documenation +# Build the documentation if (NN_ENABLE_DOC) set (NN_DOCDIR ${CMAKE_CURRENT_SOURCE_DIR}/doc) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/rfc/sp-surveyor-01.txt new/nanomsg-1.2.2/rfc/sp-surveyor-01.txt --- old/nanomsg-1.2.1/rfc/sp-surveyor-01.txt 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/rfc/sp-surveyor-01.txt 2025-10-05 18:42:08.000000000 +0200 @@ -453,7 +453,7 @@ 5.2. RESPONDENT endpoint RESPONDENT endpoints are used to receive surveys from the clients and - send resopnses back to the clients. + send responses back to the clients. First of all, each RESPONDENT socket is responsible for assigning unique 31-bit channel IDs to the individual associated channels. @@ -603,7 +603,7 @@ algorithm above. Finally, when the timeout for a survey expires, then the survey must - be canceled in a manner similar to user-initiated cancelation. That + be canceled in a manner similar to user-initiated cancellation. That is, the stored copy of the survey must be deleted, the timer removed, and any further responses received with the same survey ID are subsequently discarded. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/rfc/sp-surveyor-01.xml new/nanomsg-1.2.2/rfc/sp-surveyor-01.xml --- old/nanomsg-1.2.1/rfc/sp-surveyor-01.xml 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/rfc/sp-surveyor-01.xml 2025-10-05 18:42:08.000000000 +0200 @@ -406,7 +406,7 @@ <section title = "RESPONDENT endpoint"> <t>RESPONDENT endpoints are used to receive surveys from the clients - and send resopnses back to the clients.</t> + and send responses back to the clients.</t> <t>First of all, each RESPONDENT socket is responsible for assigning unique 31-bit channel IDs to the individual associated channels.</t> @@ -545,7 +545,7 @@ algorithm above.</t> <t>Finally, when the timeout for a survey expires, then the survey - must be canceled in a manner similar to user-initiated cancelation. + must be canceled in a manner similar to user-initiated cancellation. That is, the stored copy of the survey must be deleted, the timer removed, and any further responses received with the same survey ID are subsequently discarded.</t> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/rfc/sp-udp-mapping-01.txt new/nanomsg-1.2.2/rfc/sp-udp-mapping-01.txt --- old/nanomsg-1.2.1/rfc/sp-udp-mapping-01.txt 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/rfc/sp-udp-mapping-01.txt 2025-10-05 18:42:08.000000000 +0200 @@ -139,7 +139,7 @@ op codes can be assigned, obviating the need for an explicit version field. - These operation codes are used in the mangement of logical + These operation codes are used in the management of logical connections, and are described in more detail in the Logical Connections section below. @@ -206,7 +206,7 @@ 5.1. Connection roles As with other transports like TCP, we intentionally create the notion - of a connection initiator, and a connection accepter. The initator + of a connection initiator, and a connection accepter. The initiator is always the party who initiates the connection, and is the party responsible for sending CREQ messages. The accepter is the party that receives the CREQ messages, and replies with CACK (or possibly @@ -232,7 +232,7 @@ data for each session. In order to prevent a stale session from consuming these resources forever, and in order to keep any intervening state active (e.g. NAT rules), a CACK message may be sent - at any time by the initator. + at any time by the initiator. In the event of an error, the accepter MAY reply with an DISC message. Otherwise it MUST reply with a CREQ message. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/rfc/sp-udp-mapping-01.xml new/nanomsg-1.2.2/rfc/sp-udp-mapping-01.xml --- old/nanomsg-1.2.1/rfc/sp-udp-mapping-01.xml 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/rfc/sp-udp-mapping-01.xml 2025-10-05 18:42:08.000000000 +0200 @@ -117,7 +117,7 @@ additional op codes can be assigned, obviating the need for an explicit version field.</t> - <t>These operation codes are used in the mangement of logical connections, + <t>These operation codes are used in the management of logical connections, and are described in more detail in the Logical Connections section below.</t> @@ -185,7 +185,7 @@ <t>As with other transports like TCP, we intentionally create the notion of a connection initiator, and a connection accepter. - The initator is always the party who initiates the connection, + The initiator is always the party who initiates the connection, and is the party responsible for sending CREQ messages. The accepter is the party that receives the CREQ messages, and replies with CACK (or possibly DISC).</t> @@ -201,7 +201,7 @@ store data for each session. In order to prevent a stale session from consuming these resources forever, and in order to keep any intervening state active (e.g. NAT rules), a CACK message may be - sent at any time by the initator.</t> + sent at any time by the initiator.</t> <t>In the event of an error, the accepter MAY reply with an DISC message. Otherwise it MUST reply with a CREQ message.</t> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/aio/fsm.h new/nanomsg-1.2.2/src/aio/fsm.h --- old/nanomsg-1.2.1/src/aio/fsm.h 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/aio/fsm.h 2025-10-05 18:42:08.000000000 +0200 @@ -87,8 +87,8 @@ void nn_fsm_stopped (struct nn_fsm *self, int type); void nn_fsm_stopped_noevent (struct nn_fsm *self); -/* Replaces current owner of the fsm by the owner speicified by 'owner' - parameter. The parameter will hold the old owner afrer the call. */ +/* Replaces current owner of the fsm by the owner specified by 'owner' + parameter. The parameter will hold the old owner after the call. */ void nn_fsm_swap_owner (struct nn_fsm *self, struct nn_fsm_owner *owner); struct nn_worker *nn_fsm_choose_worker (struct nn_fsm *self); @@ -114,7 +114,7 @@ /* This function is very lowlevel action feeding Used in worker threads and timers, shouldn't be used by others - use nn_fsm_action/nn_fsm_raise/nn_fsm_raiseto instread*/ + use nn_fsm_action/nn_fsm_raise/nn_fsm_raiseto instead*/ void nn_fsm_feed (struct nn_fsm *self, int src, int type, void *srcptr); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/aio/poller_kqueue.inc new/nanomsg-1.2.2/src/aio/poller_kqueue.inc --- old/nanomsg-1.2.1/src/aio/poller_kqueue.inc 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/aio/poller_kqueue.inc 2025-10-05 18:42:08.000000000 +0200 @@ -98,13 +98,12 @@ void nn_poller_reset_in (struct nn_poller *self, struct nn_poller_hndl *hndl) { - int rc; struct kevent ev; int i; if (hndl->events & NN_POLLER_EVENT_IN) { EV_SET (&ev, hndl->fd, EVFILT_READ, EV_DELETE, 0, 0, 0); - rc = kevent (self->kq, &ev, 1, NULL, 0, NULL); + kevent (self->kq, &ev, 1, NULL, 0, NULL); hndl->events &= ~NN_POLLER_EVENT_IN; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/aio/usock_posix.inc new/nanomsg-1.2.2/src/aio/usock_posix.inc --- old/nanomsg-1.2.1/src/aio/usock_posix.inc 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/aio/usock_posix.inc 2025-10-05 18:42:08.000000000 +0200 @@ -79,7 +79,7 @@ void nn_usock_init (struct nn_usock *self, int src, struct nn_fsm *owner) { - /* Initalise the state machine. */ + /* Initialise the state machine. */ nn_fsm_init (&self->fsm, nn_usock_handler, nn_usock_shutdown, src, self, owner); self->state = NN_USOCK_STATE_IDLE; @@ -112,7 +112,7 @@ nn_worker_task_init (&self->task_recv, NN_USOCK_SRC_TASK_RECV, &self->fsm); nn_worker_task_init (&self->task_stop, NN_USOCK_SRC_TASK_STOP, &self->fsm); - /* Intialise events raised by usock. */ + /* Initialise events raised by usock. */ nn_fsm_event_init (&self->event_established); nn_fsm_event_init (&self->event_sent); nn_fsm_event_init (&self->event_received); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/aio/usock_win.inc new/nanomsg-1.2.2/src/aio/usock_win.inc --- old/nanomsg-1.2.1/src/aio/usock_win.inc 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/aio/usock_win.inc 2025-10-05 18:42:08.000000000 +0200 @@ -82,7 +82,7 @@ self->type = -1; self->protocol = -1; - /* Intialise events raised by usock. */ + /* Initialise events raised by usock. */ nn_fsm_event_init (&self->event_established); nn_fsm_event_init (&self->event_sent); nn_fsm_event_init (&self->event_received); @@ -403,7 +403,7 @@ memset (&self->out.olpd, 0, sizeof (self->out.olpd)); if (self->domain == AF_UNIX) { - /* TODO: Do not copy the buffer, find an efficent way to Write + /* TODO: Do not copy the buffer, find an efficient way to Write multiple buffers that doesn't affect the state machine. */ /* Ensure the total buffer size does not exceed size limitation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/core/global.c new/nanomsg-1.2.2/src/core/global.c --- old/nanomsg-1.2.1/src/core/global.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/core/global.c 2025-10-05 18:42:08.000000000 +0200 @@ -59,7 +59,7 @@ #include <unistd.h> #endif -/* Max number of concurrent SP sockets. Configureable at build time */ +/* Max number of concurrent SP sockets. Configurable at build time */ #ifndef NN_MAX_SOCKETS #define NN_MAX_SOCKETS 512 #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/core/sock.c new/nanomsg-1.2.2/src/core/sock.c --- old/nanomsg-1.2.1/src/core/sock.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/core/sock.c 2025-10-05 18:42:08.000000000 +0200 @@ -176,7 +176,7 @@ nn_ctx_raise (self->fsm.ctx, &self->fsm.stopped); } -/* Stop the socket. This will prevent new calls from aquiring a +/* Stop the socket. This will prevent new calls from acquiring a hold on the socket, cause endpoints to shut down, and wake any threads waiting to recv or send data. */ void nn_sock_stop (struct nn_sock *self) @@ -534,7 +534,7 @@ nn_ctx_enter (&self->ctx); - /* Find the specified enpoint. */ + /* Find the specified endpoint. */ ep = NULL; for (it = nn_list_begin (&self->eps); it != nn_list_end (&self->eps); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/core/sock.h new/nanomsg-1.2.2/src/core/sock.h --- old/nanomsg-1.2.1/src/core/sock.h 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/core/sock.h 2025-10-05 18:42:08.000000000 +0200 @@ -112,7 +112,7 @@ uint64_t messages_received; /* Bytes sent (sum length of data in messages sent) */ uint64_t bytes_sent; - /* Bytes recevied (sum length of data in messages received) */ + /* Bytes received (sum length of data in messages received) */ uint64_t bytes_received; /***** Level-style values *****/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/protocols/bus/xbus.c new/nanomsg-1.2.2/src/protocols/bus/xbus.c --- old/nanomsg-1.2.1/src/protocols/bus/xbus.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/protocols/bus/xbus.c 2025-10-05 18:42:08.000000000 +0200 @@ -37,7 +37,7 @@ /* To make the algorithm super efficient we directly cast pipe pointers to pipe IDs (rather than maintaining a hash table). For this to work, it is - neccessary for the pointer to fit in 64-bit ID. */ + necessary for the pointer to fit in 64-bit ID. */ CT_ASSERT (sizeof (uint64_t) >= sizeof (struct nn_pipe*)); /* Implementation of nn_sockbase's virtual functions. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/protocols/reqrep/req.c new/nanomsg-1.2.2/src/protocols/reqrep/req.c --- old/nanomsg-1.2.1/src/protocols/reqrep/req.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/protocols/reqrep/req.c 2025-10-05 18:42:08.000000000 +0200 @@ -262,7 +262,7 @@ if (nn_slow (!nn_req_inprogress (req))) return -EFSM; - /* If reply was not yet recieved, wait further. */ + /* If reply was not yet received, wait further. */ if (nn_slow (req->state != NN_REQ_STATE_DONE)) return -EAGAIN; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/protocols/utils/fq.c new/nanomsg-1.2.2/src/protocols/utils/fq.c --- old/nanomsg-1.2.1/src/protocols/utils/fq.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/protocols/utils/fq.c 2025-10-05 18:42:08.000000000 +0200 @@ -63,12 +63,12 @@ int rc; struct nn_pipe *p; - /* Pipe is NULL only when there are no avialable pipes. */ + /* Pipe is NULL only when there are no available pipes. */ p = nn_priolist_getpipe (&self->priolist); if (nn_slow (!p)) return -EAGAIN; - /* Receive the messsage. */ + /* Receive the message. */ rc = nn_pipe_recv (p, msg); errnum_assert (rc >= 0, -rc); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/protocols/utils/lb.c new/nanomsg-1.2.2/src/protocols/utils/lb.c --- old/nanomsg-1.2.1/src/protocols/utils/lb.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/protocols/utils/lb.c 2025-10-05 18:42:08.000000000 +0200 @@ -68,12 +68,12 @@ int rc; struct nn_pipe *pipe; - /* Pipe is NULL only when there are no avialable pipes. */ + /* Pipe is NULL only when there are no available pipes. */ pipe = nn_priolist_getpipe (&self->priolist); if (nn_slow (!pipe)) return -EAGAIN; - /* Send the messsage. */ + /* Send the message. */ rc = nn_pipe_send (pipe, msg); errnum_assert (rc >= 0, -rc); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/transports/ipc/bipc.c new/nanomsg-1.2.2/src/transports/ipc/bipc.c --- old/nanomsg-1.2.1/src/transports/ipc/bipc.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/transports/ipc/bipc.c 2025-10-05 18:42:08.000000000 +0200 @@ -295,7 +295,7 @@ /* Delete the IPC file left over by eventual previous runs of the application. We'll check whether the file is still in use by - connecting to the endpoint. On Windows plaform, NamedPipe is used + connecting to the endpoint. On Windows platform, NamedPipe is used which does not have an underlying file. */ #if defined NN_HAVE_UNIX_SOCKETS fd = socket (AF_UNIX, SOCK_STREAM, 0); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/transports/tcp/ctcp.c new/nanomsg-1.2.2/src/transports/tcp/ctcp.c --- old/nanomsg-1.2.1/src/transports/tcp/ctcp.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/transports/tcp/ctcp.c 2025-10-05 18:42:08.000000000 +0200 @@ -131,7 +131,7 @@ self = nn_alloc (sizeof (struct nn_ctcp), "ctcp"); alloc_assert (self); - /* Initalise the endpoint. */ + /* Initialise the endpoint. */ self->ep = ep; nn_ep_tran_setup (ep, &nn_ctcp_ep_ops, self); @@ -607,6 +607,7 @@ /* Bind the socket to the local network interface. */ rc = nn_usock_bind (&self->usock, (struct sockaddr*) &local, locallen); if (nn_slow (rc != 0)) { + nn_usock_stop (&self->usock); nn_backoff_start (&self->retry); self->state = NN_CTCP_STATE_WAITING; return; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/transports/utils/backoff.h new/nanomsg-1.2.2/src/transports/utils/backoff.h --- old/nanomsg-1.2.1/src/transports/utils/backoff.h 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/transports/utils/backoff.h 2025-10-05 18:42:08.000000000 +0200 @@ -25,7 +25,7 @@ #include "../../aio/timer.h" -/* Timer with exponential backoff. Actual wating time is (2^n-1)*minivl, +/* Timer with exponential backoff. Actual waiting time is (2^n-1)*minivl, meaning that first wait is 0 ms long, second one is minivl ms long etc. */ #define NN_BACKOFF_TIMEOUT NN_TIMER_TIMEOUT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/transports/utils/dns.c new/nanomsg-1.2.2/src/transports/utils/dns.c --- old/nanomsg-1.2.1/src/transports/utils/dns.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/transports/utils/dns.c 2025-10-05 18:42:08.000000000 +0200 @@ -71,7 +71,7 @@ --namelen; ++labelsz; - /* Labels longer than 63 charcters are not permitted. */ + /* Labels longer than 63 characters are not permitted. */ if (labelsz > 63) return -EINVAL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/transports/ws/cws.c new/nanomsg-1.2.2/src/transports/ws/cws.c --- old/nanomsg-1.2.1/src/transports/ws/cws.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/transports/ws/cws.c 2025-10-05 18:42:08.000000000 +0200 @@ -152,7 +152,7 @@ self->ep = ep; self->peer_gone = 0; - /* Initalise the endpoint. */ + /* Initialise the endpoint. */ nn_ep_tran_setup (ep, &nn_cws_ep_ops, self); /* Check whether IPv6 is to be used. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/transports/ws/ws_handshake.c new/nanomsg-1.2.2/src/transports/ws/ws_handshake.c --- old/nanomsg-1.2.1/src/transports/ws/ws_handshake.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/transports/ws/ws_handshake.c 2025-10-05 18:42:08.000000000 +0200 @@ -190,7 +190,7 @@ struct nn_usock *usock, struct nn_pipebase *pipebase, int mode, const char *resource, const char *host) { - /* It's expected this resource has been allocated during intial connect. */ + /* It's expected this resource has been allocated during initial connect. */ if (mode == NN_WS_CLIENT) nn_assert (strlen (resource) >= 1); @@ -326,7 +326,7 @@ if (len) *len = 0; - /* Find first occurence of termination sequence. */ + /* Find first occurrence of termination sequence. */ end = strstr (start, termseq); /* Was a termination sequence found? */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/chunkref.c new/nanomsg-1.2.2/src/utils/chunkref.c --- old/nanomsg-1.2.1/src/utils/chunkref.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/chunkref.c 2025-10-05 18:42:08.000000000 +0200 @@ -52,6 +52,7 @@ { if (self->size == NN_CHUNKREF_EXT) { nn_chunk_free (self->u.chunk); + self->size = 0; } } @@ -100,7 +101,7 @@ void *nn_chunkref_data (struct nn_chunkref *self) { - if (self->size > NN_CHUNKREF_MAX) { + if (self->size == NN_CHUNKREF_EXT) { return self->u.chunk; } else { return self->u.ref; @@ -109,7 +110,7 @@ size_t nn_chunkref_size (struct nn_chunkref *self) { - if (self->size > NN_CHUNKREF_MAX) { + if (self->size == NN_CHUNKREF_EXT) { return (nn_chunk_size(self->u.chunk)); } return self->size; @@ -118,7 +119,7 @@ void nn_chunkref_trim (struct nn_chunkref *self, size_t n) { if (self->size == NN_CHUNKREF_EXT) { - nn_chunk_trim (self->u.chunk, n); + self->u.chunk = nn_chunk_trim (self->u.chunk, n); return; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/closefd.c new/nanomsg-1.2.2/src/utils/closefd.c --- old/nanomsg-1.2.1/src/utils/closefd.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/closefd.c 2025-10-05 18:42:08.000000000 +0200 @@ -1,6 +1,6 @@ /* Copyright (c) 2013 GoPivotal, Inc. All rights reserved. - Copyright 2015 Garrett D'Amore <[email protected]> + Copyright 2025 Garrett D'Amore <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -35,11 +35,7 @@ if (nn_slow (fd < 0)) { return; } - rc = close (fd); - if (nn_fast (rc == 0)) - return; - errno_assert (errno == EINTR || errno == ETIMEDOUT || - errno == EWOULDBLOCK || errno == EINPROGRESS || errno == ECONNRESET); + (void) close (fd); } #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/efd.c new/nanomsg-1.2.2/src/utils/efd.c --- old/nanomsg-1.2.1/src/utils/efd.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/efd.c 2025-10-05 18:42:08.000000000 +0200 @@ -84,7 +84,7 @@ rc = nn_err_wsa_to_posix (WSAGetLastError ()); errno = rc; - /* Treat these as a non-fatal errors, typically occuring when the + /* Treat these as a non-fatal errors, typically occurring when the socket is being closed from a separate thread during a blocking I/O operation. */ if (rc == EINTR || rc == ENOTSOCK) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/efd.h new/nanomsg-1.2.2/src/utils/efd.h --- old/nanomsg-1.2.1/src/utils/efd.h 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/efd.h 2025-10-05 18:42:08.000000000 +0200 @@ -63,7 +63,7 @@ void nn_efd_unsignal (struct nn_efd *self); /* Wait till efd object becomes signaled or when timeout (in milliseconds, - nagative value meaning 'infinite') expires. In the former case 0 is + negative value meaning 'infinite') expires. In the former case 0 is returened. In the latter, -ETIMEDOUT. */ int nn_efd_wait (struct nn_efd *self, int timeout); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/efd_win.inc new/nanomsg-1.2.2/src/utils/efd_win.inc --- old/nanomsg-1.2.1/src/utils/efd_win.inc 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/efd_win.inc 2025-10-05 18:42:08.000000000 +0200 @@ -73,7 +73,7 @@ if (rc == SOCKET_ERROR) goto wsafail; - /* Start listening for the incomming connections. In normal case we are + /* Start listening for the incoming connections. In normal case we are going to accept just a single connection, so backlog buffer of size 1 is sufficient. */ rc = listen (listener, 1); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/hash.h new/nanomsg-1.2.2/src/utils/hash.h --- old/nanomsg-1.2.1/src/utils/hash.h 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/hash.h 2025-10-05 18:42:08.000000000 +0200 @@ -57,7 +57,7 @@ void nn_hash_erase (struct nn_hash *self, struct nn_hash_item *item); /* Gets an item in the hash based on the key. Returns NULL if there's no - corresponing item in the hash table. */ + corresponding item in the hash table. */ struct nn_hash_item *nn_hash_get (struct nn_hash *self, uint32_t key); /* Initialise a hash item. At this point it is not a part of any hash table. */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/src/utils/list.h new/nanomsg-1.2.2/src/utils/list.h --- old/nanomsg-1.2.1/src/utils/list.h 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/src/utils/list.h 2025-10-05 18:42:08.000000000 +0200 @@ -63,7 +63,7 @@ struct nn_list_item *nn_list_next (struct nn_list *self, struct nn_list_item *it); -/* Adds the item to the list before the item pointed to by 'it'. Priot to +/* Adds the item to the list before the item pointed to by 'it'. Prior to insertion item should not be part of any list. */ void nn_list_insert (struct nn_list *self, struct nn_list_item *item, struct nn_list_item *it); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/device.c new/nanomsg-1.2.2/tests/device.c --- old/nanomsg-1.2.1/tests/device.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/device.c 2025-10-05 18:42:08.000000000 +0200 @@ -43,7 +43,7 @@ int deva; int devb; - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ deva = test_socket (AF_SP_RAW, NN_PAIR); test_bind (deva, SOCKET_ADDRESS_A); devb = test_socket (AF_SP_RAW, NN_PAIR); @@ -64,7 +64,7 @@ int devc; int devd; - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ devc = test_socket (AF_SP_RAW, NN_PULL); test_bind (devc, SOCKET_ADDRESS_C); devd = test_socket (AF_SP_RAW, NN_PUSH); @@ -84,7 +84,7 @@ int rc; int deve; - /* Intialise the device socket. */ + /* Initialise the device socket. */ deve = test_socket (AF_SP_RAW, NN_BUS); test_bind (deve, SOCKET_ADDRESS_E); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/device4.c new/nanomsg-1.2.2/tests/device4.c --- old/nanomsg-1.2.1/tests/device4.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/device4.c 2025-10-05 18:42:08.000000000 +0200 @@ -39,7 +39,7 @@ int devf; int devg; - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ devf = test_socket (AF_SP_RAW, NN_REP); test_bind (devf, socket_address_f); devg = test_socket (AF_SP_RAW, NN_REQ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/device5.c new/nanomsg-1.2.2/tests/device5.c --- old/nanomsg-1.2.1/tests/device5.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/device5.c 2025-10-05 18:42:08.000000000 +0200 @@ -39,7 +39,7 @@ int dev0; int dev1; - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ dev0 = test_socket (AF_SP_RAW, NN_REP); test_bind (dev0, socket_address_h); dev1 = test_socket (AF_SP_RAW, NN_REQ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/device6.c new/nanomsg-1.2.2/tests/device6.c --- old/nanomsg-1.2.1/tests/device6.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/device6.c 2025-10-05 18:42:08.000000000 +0200 @@ -39,7 +39,7 @@ int dev0; int dev1; - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ dev0 = test_socket (AF_SP_RAW, NN_RESPONDENT); test_bind (dev0, socket_address_h); dev1 = test_socket (AF_SP_RAW, NN_SURVEYOR); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/device7.c new/nanomsg-1.2.2/tests/device7.c --- old/nanomsg-1.2.1/tests/device7.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/device7.c 2025-10-05 18:42:08.000000000 +0200 @@ -42,7 +42,7 @@ int dev0; int dev1; - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ dev0 = test_socket (AF_SP_RAW, NN_REP); test_bind (dev0, socket_address_h); dev1 = test_socket (AF_SP_RAW, NN_REQ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/reqrep.c new/nanomsg-1.2.2/tests/reqrep.c --- old/nanomsg-1.2.1/tests/reqrep.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/reqrep.c 2025-10-05 18:42:08.000000000 +0200 @@ -108,7 +108,7 @@ test_close (rep1); /* Check sending a request when the peer is not available. (It should - be sent immediatelly when the peer comes online rather than relying + be sent immediately when the peer comes online rather than relying on the resend algorithm. */ req1 = test_socket (AF_SP, NN_REQ); test_connect (req1, SOCKET_ADDRESS); @@ -126,7 +126,7 @@ test_close (rep1); /* Check removing socket request sent to (It should - be sent immediatelly to other peer rather than relying + be sent immediately to other peer rather than relying on the resend algorithm). */ req1 = test_socket (AF_SP, NN_REQ); test_bind (req1, SOCKET_ADDRESS); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/reqttl.c new/nanomsg-1.2.2/tests/reqttl.c --- old/nanomsg-1.2.1/tests/reqttl.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/reqttl.c 2025-10-05 18:42:08.000000000 +0200 @@ -64,7 +64,7 @@ test_addr_from(socket_address_a, "tcp", "127.0.0.1", port); test_addr_from(socket_address_b, "tcp", "127.0.0.1", port + 1); - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ dev0 = test_socket (AF_SP_RAW, NN_REP); dev1 = test_socket (AF_SP_RAW, NN_REQ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nanomsg-1.2.1/tests/surveyttl.c new/nanomsg-1.2.2/tests/surveyttl.c --- old/nanomsg-1.2.1/tests/surveyttl.c 2024-02-03 23:45:24.000000000 +0100 +++ new/nanomsg-1.2.2/tests/surveyttl.c 2025-10-05 18:42:08.000000000 +0200 @@ -64,7 +64,7 @@ test_addr_from(socket_address_a, "tcp", "127.0.0.1", port); test_addr_from(socket_address_b, "tcp", "127.0.0.1", port + 1); - /* Intialise the device sockets. */ + /* Initialise the device sockets. */ dev0 = test_socket (AF_SP_RAW, NN_RESPONDENT); dev1 = test_socket (AF_SP_RAW, NN_SURVEYOR);
