[Libwebsockets] Switch from 1.7.8 to 2.0.1

Thomas Spitz thomas.spitz at hestia-france.com
Sat May 14 15:55:36 CEST 2016


Thanks a lot, it works now

For info, I haven't had to specify any  rx_buffer_size until now in
lws_protocols protocols[]:
{ "my-protocol", callback_my-protocol, sizeof(struct
per_session_data__hestia_v4), }

I assume it was set to a bigger default value with lws 1.7.8

Best regards,
Thomas

2016-05-14 14:53 GMT+02:00 Andy Green <andy at warmcat.com>:

>
>
> On May 14, 2016 8:07:51 PM GMT+08:00, Thomas Spitz <
> thomas.spitz at hestia-france.com> wrote:
> >Hi Andy,
> >
> >Thanks to LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT it is now going further
> >with
> >lws 2.0.1. I am able to connect and to exchange small messages but when
> >the
> >lws server try to send larger messages sliced in 2045B trunks it is so
> >slow
> >that it is not usable. Apparently the 2045B messages are sliced in
> >partial
> >sent of 20 B...
>
> It's controlled by your protocol struct rx_buffer_size.
>
> -Andy
>
> >Here is the debug log with lws 1.7.8 (max debug log):
> >
> >> CALLBACK_SERVER_WRITEABLE(): [ARM->IPclient] Send  2055 B trunk from
> >large
> >> message
> >> lwsts[1439]: written 2059 bytes to client
> >> lwsts[1439]: _lws_rx_flow_control: no pending change
> >> lwsts[1439]: lws_calllback_as_writeable: 0x1038000 (user=0x10378c0)
> >> CALLBACK_SERVER_WRITEABLE(): [ARM->IPclient] Send  2055 B trunk from
> >large
> >> message
> >> lwsts[1439]: written 2059 bytes to client
> >> lwsts[1439]: _lws_rx_flow_control: no pending change
> >> lwsts[1439]: lws_calllback_as_writeable: 0x1038000 (user=0x10378c0)
> >> CALLBACK_SERVER_WRITEABLE(): [ARM->IPclient] Send  2055 B trunk from
> >large
> >> message
> >> lwsts[1439]: written 2059 bytes to client
> >> lwsts[1439]: _lws_rx_flow_control: no pending change
> >> lwsts[1439]: lws_calllback_as_writeable: 0x1038000 (user=0x10378c0)
> >
> >
> >And the same with lws 2.0.1 (max debug log):
> >
> >> CALLBACK_SERVER_WRITEABLE(): [ARM->IPclient] Send  2055 B trunk from
> >large
> >> message
> >> lwsts[1960]: 0xdc730 new partial sent 20 from 2059 total
> >> lwsts[1960]: _lws_rx_flow_control: no pending change
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 2039)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 2019)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1999)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1979)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1959)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1939)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1919)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1899)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1879)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1859)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1839)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1819)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1799)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1779)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1759)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1739)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1719)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1699)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1679)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1659)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1639)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1619)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1599)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1579)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1559)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1539)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1519)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1499)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1479)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1459)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1439)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1419)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1399)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1379)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1359)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1339)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1319)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1299)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1279)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1259)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1239)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1219)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1199)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1179)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1159)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1139)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1119)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1099)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1079)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1059)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1039)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1019)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 999)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 979)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 959)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 939)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 919)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 899)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 879)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 859)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 839)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 819)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 799)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 779)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 759)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 739)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 719)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 699)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 679)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 659)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 639)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 619)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 599)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 579)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 559)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 539)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 519)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 499)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 479)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 459)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 439)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 419)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 399)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 379)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 359)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 339)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 319)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 299)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 279)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 259)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 239)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 219)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 199)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 179)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 159)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 139)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 119)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 99)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 79)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 59)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 39)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 19 (vs 19)
> >> lwsts[1960]: ***** dc730 partial send completed
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: lws_calllback_as_writeable: 0xdc730 (user=0xeeba0)
> >> CALLBACK_SERVER_WRITEABLE(): [ARM->IPclient] Send  2055 B trunk from
> >large
> >> message
> >> lwsts[1960]: 0xdc730 new partial sent 20 from 2059 total
> >> lwsts[1960]: _lws_rx_flow_control: no pending change
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 2039)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 2019)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1999)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1979)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1959)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1939)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1919)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1899)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1879)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1859)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1839)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1819)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1799)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1779)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1759)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1739)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1719)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1699)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1679)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1659)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1639)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1619)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1599)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1579)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1559)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1539)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1519)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1499)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1479)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1459)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1439)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1419)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1399)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1379)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1359)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1339)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1319)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1299)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1279)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1259)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1239)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1219)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1199)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1179)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1159)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1139)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1119)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1099)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1079)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1059)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1039)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1019)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 999)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 979)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 959)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 939)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 919)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 899)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 879)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 859)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 839)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 819)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 799)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 779)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 759)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 739)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 719)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 699)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 679)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 659)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 639)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 619)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 599)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 579)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 559)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 539)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 519)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 499)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 479)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 459)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 439)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 419)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 399)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 379)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 359)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 339)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 319)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 299)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 279)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 259)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 239)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 219)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 199)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 179)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 159)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 139)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 119)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 99)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 79)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 59)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 39)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 19 (vs 19)
> >> lwsts[1960]: ***** dc730 partial send completed
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: lws_calllback_as_writeable: 0xdc730 (user=0xeeba0)
> >> CALLBACK_SERVER_WRITEABLE(): [ARM->IPclient] Send  2055 B trunk from
> >large
> >> message
> >> lwsts[1960]: 0xdc730 new partial sent 20 from 2059 total
> >> lwsts[1960]: _lws_rx_flow_control: no pending change
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 2039)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 2019)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1999)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1979)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1959)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1939)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1919)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1899)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1879)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1859)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1839)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1819)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1799)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1779)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1759)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1739)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1719)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1699)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1679)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1659)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1639)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1619)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1599)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1579)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1559)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1539)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1519)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1499)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1479)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1459)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1439)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1419)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1399)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1379)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1359)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1339)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1319)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1299)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1279)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1259)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1239)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1219)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1199)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1179)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1159)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1139)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1119)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1099)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1079)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1059)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1039)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 1019)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 999)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 979)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 959)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 939)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 919)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 899)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 879)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 859)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 839)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 819)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 799)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 779)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 759)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 739)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 719)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 699)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 679)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 659)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 639)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 619)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 599)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 579)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 559)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 539)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 519)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 499)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 479)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 459)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 439)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 419)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 399)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 379)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 359)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 339)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 319)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 299)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 279)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 259)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 239)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 219)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 199)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 179)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 159)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 139)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 119)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 99)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 79)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 59)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 20 (vs 39)
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: 0xdc730 partial adv 19 (vs 19)
> >> lwsts[1960]: ***** dc730 partial send completed
> >> lwsts[1960]: fd=21, revents=4
> >> lwsts[1960]: lws_calllback_as_writeable: 0xdc730 (user=0xeeba0)
> >
> >
> >Best regards,
> >Thomas
> >
> >2016-05-13 16:01 GMT+02:00 Andy Green <andy at warmcat.com>:
> >
> >>
> >>
> >> On May 13, 2016 9:44:31 PM GMT+08:00, Thomas Spitz <
> >> thomas.spitz at hestia-france.com> wrote:
> >> > <hestia at hestia-france.com>
> >> >Hello,
> >> >
> >> >I'm going to switch from 1.7.8 to 2.0.1 to take advantage of new
> >> >functions
> >> >(lwsws, vhost,..)
> >> >
> >> >Thus I first try to switch from 1.7.8 to 2.0.1 without activating
> >any
> >> >new
> >> >function but I have problem as soon as I try to connect. Here the
> >log
> >> >of
> >>
> >> There's one thing you have to take care about from 1.7 -> 2.0, if you
> >use
> >> ssl you must add the context creation flag
> >> LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT.
> >>
> >> -Andy
> >>
> >> >one try:
> >> >
> >> >> lwsts[935]: fd=19, revents=1
> >> >> lwsts[935]: accepted new conn  port 26302 on fd=21
> >> >> lwsts[935]: Accepted 0xc7050 to tsi 0
> >> >> lwsts[935]: lws_adopt_socket_vhost: new wsi 0xc7050, sockfd 21
> >> >> lwsts[935]: lws_set_timeout: 0xc7050: 20 secs
> >> >> lwsts[935]: insert_wsi_socket_into_fds: 0xc7050: tsi=0, sock=21,
> >> >> pos-in-fds=2
> >> >> lwsts[935]: lws_header_table_attach: wsi 0xc7050: ah (nil) (tsi 0)
> >> >> lwsts[935]: lws_header_table_attach: wsi 0xc7050: ah 0xcb7e0:
> >count 1
> >> >(on
> >> >> exit)
> >> >> lwsts[935]: Attached ah immediately
> >> >> lwsts[935]: fd=21, revents=1
> >> >> lwsts[935]: lws_server_socket_service: 0xc7050: rxpos:0 rxlen:0
> >> >> lwsts[935]: lws_server_socket_service: wsi 0xc7050, ah->rxlen =
> >200
> >> >> lwsts[935]: lws_read: incoming len 200  state 0
> >> >> lwsts[935]: issuing 200 bytes to parser
> >> >> lwsts[935]: WSI_TOKEN_NAME_PART '' (mode=0)
> >> >> lwsts[935]: Unknown method - dropping
> >> >> lwsts[935]:  forbidding on uri sanitation
> >> >> lwsts[935]: 0xc7050 new partial sent 20 from 94 total
> >> >> lwsts[935]: ****** c7050 Sending new, pending truncated ...
> >> >> /tmp/MyProg: libwebsockets-2.0.1-stable/lib/output.c: 113:
> >> >lws_issue_raw:
> >> >> Assertion `0' failed.
> >> >> Child terminated with signal = 0x6 (SIGABRT)
> >> >> GDBserver exiting
> >> >
> >> >I have tried both to compile the libwebsocket using buildroot
> >> >Here the libwebsockets.mk of buildroot modified:
> >> >
> >> >>
> >> >>
> >>
> >>
>
> >>################################################################################
> >> >> #
> >> >> # libwebsockets
> >> >> #
> >> >>
> >> >>
> >>
> >>
>
> >>################################################################################
> >> >> LIBWEBSOCKETS_VERSION = 2.0.1 #instead of 1.7.8
> >> >> LIBWEBSOCKETS_SOURCE =
> >> >> libwebsockets-$(LIBWEBSOCKETS_VERSION).tar.gz #instead of
> >> >> LIBWEBSOCKETS_SOURCE =
> >libwebsockets-$(LIBWEBSOCKETS_VERSION).tar.xz
> >> >> LIBWEBSOCKETS_SITE =
> >> >https://libwebsockets.org/git/libwebsockets/snapshot #instead
> >> >> of LIBWEBSOCKETS_SITE =
> >> >> http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot
> >> >> LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
> >> >> LIBWEBSOCKETS_LICENSE_FILES = LICENSE
> >> >> LIBWEBSOCKETS_DEPENDENCIES = zlib
> >> >> LIBWEBSOCKETS_INSTALL_STAGING = YES
> >> >> LIBWEBSOCKETS_CONF_OPTS += -DWITHOUT_TESTAPPS=ON
> >> >> ifeq ($(BR2_INET_IPV6),y)
> >> >> LIBWEBSOCKETS_CONF_OPTS += -DLWS_IPV6=ON
> >> >> else
> >> >> LIBWEBSOCKETS_CONF_OPTS += -DLWS_IPV6=OFF
> >> >> endif
> >> >> ifeq ($(BR2_PACKAGE_OPENSSL),y)
> >> >> LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
> >> >> LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
> >> >> else
> >> >> LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
> >> >> endif
> >> >> $(eval $(cmake-package))
> >> >
> >> >and to compile by myself out of buildroot with debug support:
> >> >I haven't change anything to CMakeLists.txt
> >> >I modified a bit cross-arm-linux-gnueabihf.cmake
> >> >
> >> >> cmake .. -DCMAKE_INSTALL_PREFIX:PATH=./
> >> >> -DCMAKE_TOOLCHAIN_FILE=../cross-arm-linux-apf28.cmake
> >> >> -DZLIB_LIBRARY=/buildroot/output/build/zlib-1.2.8/libz.so
> >> >> -DZLIB_INCLUDE_DIR=/buildroot/output/staging/usr/include/
> >> >> -DOPENSSL_ROOT_DIR=/buildroot/output/build/openssl-1.0.2g
> >> >>
> >-DOPENSSL_INCLUDE_DIR=/buildroot/output/build/openssl-1.0.2g/include/
> >> >> -DOPENSSL_LIBRARIES=/buildroot/output/build/openssl-1.0.2g/
> >> >>  -DCMAKE_BUILD_TYPE=DEBUG
> >> >
> >> >
> >> >If you see any big mistake...
> >> >
> >> >Best regards,
> >> >Thomas
> >> >
> >> >
> >>
> >>------------------------------------------------------------------------
> >> >
> >> >_______________________________________________
> >> >Libwebsockets mailing list
> >> >Libwebsockets at ml.libwebsockets.org
> >> >http://libwebsockets.org/mailman/listinfo/libwebsockets
> >>
> >>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20160514/c233dcb4/attachment-0001.html>


More information about the Libwebsockets mailing list