Merge tag 'upstream/3.2.3' into tizen 13/253613/4 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211029.014320 accepted/tizen/unified/20210217.120515 submit/tizen/20210216.094343 submit/tizen_6.5/20211028.163501 tizen_6.5.m2_release
authorCheoleun Moon <chleun.moon@samsung.com>
Tue, 16 Feb 2021 04:48:48 +0000 (13:48 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Tue, 16 Feb 2021 04:50:13 +0000 (13:50 +0900)
Change-Id: I538a1ab537c64150323a469f40078bf001a42c33

46 files changed:
1  2 
CMakeLists.txt
lib/core-net/close.c
lib/core-net/connect.c
lib/core-net/dummy-callback.c
lib/core-net/lws-dsh.c
lib/core-net/output.c
lib/core-net/private-lib-core-net.h
lib/core-net/sequencer.c
lib/core-net/sorted-usec-list.c
lib/core-net/vhost.c
lib/core-net/wsi-timeout.c
lib/core/context.c
lib/core/private-lib-core.h
lib/event-libs/libev/libev.c
lib/event-libs/libevent/libevent.c
lib/event-libs/libuv/libuv.c
lib/jose/jws/jws.c
lib/misc/daemonize.c
lib/plat/esp32/esp32-service.c
lib/plat/optee/network.c
lib/plat/unix/private-lib-plat-unix.h
lib/plat/unix/unix-init.c
lib/plat/unix/unix-misc.c
lib/plat/unix/unix-pipe.c
lib/plat/unix/unix-service.c
lib/plat/windows/windows-service.c
lib/plat/windows/windows-sockets.c
lib/roles/cgi/cgi-server.c
lib/roles/h1/ops-h1.c
lib/roles/h2/http2.c
lib/roles/http/client/client-handshake.c
lib/roles/http/client/client-http.c
lib/roles/http/private-lib-roles-http.h
lib/roles/http/server/lws-spa.c
lib/roles/http/server/server.c
lib/roles/listen/ops-listen.c
lib/roles/pipe/ops-pipe.c
lib/roles/ws/client-ws.c
lib/roles/ws/ops-ws.c
lib/tls/lws-gencrypto-common.c
lib/tls/mbedtls/lws-genec.c
lib/tls/openssl/openssl-client.c
lib/tls/openssl/openssl-x509.c
lib/tls/tls-client.c
lib/tls/tls.c
packaging/libwebsockets.spec

diff --cc CMakeLists.txt
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
  #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
  #define _WINSOCK_DEPRECATED_NO_WARNINGS
  #endif
 -#include "core/private.h"
 +#include "private-lib-core.h"
  
  
+ int
+ _lws_plat_service_forced_tsi(struct lws_context *context, int tsi)
+ {
+       struct lws_context_per_thread *pt = &context->pt[tsi];
+       int m, n;
+       lws_service_flag_pending(context, tsi);
+       /* any socket with events to service? */
+       for (n = 0; n < (int)pt->fds_count; n++) {
+               if (!pt->fds[n].revents)
+                       continue;
+               m = lws_service_fd_tsi(context, &pt->fds[n], tsi);
+               if (m < 0)
+                       return -1;
+               /* if something closed, retry this slot */
+               if (m)
+                       n--;
+       }
+       lws_service_do_ripe_rxflow(pt);
+       return 0;
+ }
  LWS_EXTERN int
  _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
  {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib/tls/tls.c
Simple merge
index 031d1b4,0000000..920e611
mode 100644,000000..100644
--- /dev/null
@@@ -1,67 -1,0 +1,67 @@@
- Version:    3.2.0
 +Name:       libwebsockets
 +Summary:    WebSocket Library
++Version:    3.2.3
 +Release:    1
 +Group:      System/Libraries
 +License:    LGPLv2 with exceptions
 +URL:        https://github.com/warmcat/libwebsockets
 +Source0:    %{name}-%{version}.tar.gz
 +Requires(post): /sbin/ldconfig
 +Requires(postun): /sbin/ldconfig
 +BuildRequires: zlib-devel
 +BuildRequires: pkgconfig(openssl1.1)
 +BuildRequires: openssl1.1
 +BuildRequires: cmake
 +
 +%define _optdeveldir /opt/usr/devel/usr/
 +
 +%description
 +C Websockets Server Library
 +
 +%package devel
 +Summary:    Development files for %{name}
 +Group:      Development/Libraries
 +Requires:   %{name} = %{version}-%{release}
 +
 +%description devel
 +Development files needed for building websocket clients and servers
 +
 +%prep
 +%setup -q -n %{name}-%{version}
 +
 +%build
 +
 +%cmake -DLWS_WITH_SSL=On \
 +      -DLWS_WITHOUT_TESTAPPS=ON \
 +      -DLWS_WITH_SERVER_STATUS=ON \
 +      -DLWS_IPV6=ON \
 +      -DLWS_WITH_SO_BINDTODEVICE=ON \
 +      -DLWS_WITH_HTTP2=OFF\
 +      .
 +
 +make %{?jobs:-j%jobs}
 +
 +%install
 +rm -rf %{buildroot}
 +
 +%make_install
 +
 +%post -p /sbin/ldconfig
 +
 +%postun -p /sbin/ldconfig
 +
 +%files
 +%manifest %{name}.manifest
 +%defattr(-,root,root,-)
 +%{_libdir}/libwebsockets*.so.*
 +%license LICENSE
 +
 +%files devel
 +%defattr(-,root,root,-)
 +%{_includedir}/libwebsockets.h
 +%{_includedir}/lws-plugin-ssh.h
 +%{_includedir}/lws_config.h
 +%{_includedir}/libwebsockets/*
 +%{_libdir}/libwebsockets.so
 +%{_libdir}/pkgconfig/*
 +%{_libdir}/cmake/*