Trouble with janus.transport.http for libmicrohttpd > 0.9.66

61 views
Skip to first unread message

Serhat Sakarya

unread,
Mar 31, 2020, 8:57:52 AM3/31/20
to meetecho-janus
I've tried to upgrade to libmicrohttpd version 0.9.70, but the demos stopped working.

An easy way to reproduce it like this:


It does download the info file correctly, but then just keeps hanging as it seems the connection doesn't close. Apparently something changed in libmicrohttpd since version 0.9.67 that causes this because 0.9.65 does work as expected.

Does anyone have any idea on how to fix this?

Lorenzo Miniero

unread,
Mar 31, 2020, 9:06:08 AM3/31/20
to meetecho-janus
Fedora ships 0.9.70 and it works as expected for me.

L.

Serhat Sakarya

unread,
Mar 31, 2020, 9:18:57 AM3/31/20
to meetecho-janus
Good to know as a reference point as it indicates that upgrading would not fix the segfaults.

I'm using an Ubuntu 19:10 image in a LXD container btw.

guna sekar

unread,
Mar 31, 2020, 9:33:09 AM3/31/20
to Serhat Sakarya, meetecho-janus
Hi
I am using centos 7 . In centos also not working 

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/da1d8b07-d64f-45f7-8308-988bf775b2dd%40googlegroups.com.

Daebak Cafe

unread,
Mar 31, 2020, 9:56:43 AM3/31/20
to meetecho-janus
dpkg -l | grep libmicrohttpd
ii  libmicrohttpd-dev                      0.9.59-1                                        amd64        library embedding HTTP server functionality (development)
ii  libmicrohttpd12                        0.9.59-1                                        amd64        library embedding HTTP server functionality

Janus works perfectly fine with this on Ubuntu 18.04

On Tuesday, March 31, 2020 at 4:33:09 PM UTC+3, guna sekar wrote:
Hi
I am using centos 7 . In centos also not working 

On Tue, 31 Mar 2020, 6:49 pm Serhat Sakarya, <tal...@gmail.com> wrote:
Good to know as a reference point as it indicates that upgrading would not fix the segfaults.

I'm using an Ubuntu 19:10 image in a LXD container btw.


On Tuesday, March 31, 2020 at 3:06:08 PM UTC+2, Lorenzo Miniero wrote:
Fedora ships 0.9.70 and it works as expected for me.

L.

Il giorno martedì 31 marzo 2020 14:57:52 UTC+2, Serhat Sakarya ha scritto:
I've tried to upgrade to libmicrohttpd version 0.9.70, but the demos stopped working.

An easy way to reproduce it like this:


It does download the info file correctly, but then just keeps hanging as it seems the connection doesn't close. Apparently something changed in libmicrohttpd since version 0.9.67 that causes this because 0.9.65 does work as expected.

Does anyone have any idea on how to fix this?

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetech...@googlegroups.com.

Serhat Sakarya

unread,
Mar 31, 2020, 10:13:27 AM3/31/20
to meetecho-janus
Thanks for checking. It seems that on Ubuntu, the trouble starts at 0.9.67 and higher.

Daebak Cafe

unread,
Mar 31, 2020, 10:17:20 AM3/31/20
to meetecho-janus
Maybe it's worth mentioning that we do not rely heavily on transport.http and it is used only for admin API commands to destroy rooms etc., so our case may not be the most eloquent. Most of the traffic is done via websockets in our case.

uxmaster

unread,
Apr 1, 2020, 3:47:40 AM4/1/20
to meetecho-janus
It may be that something gets cork on but not off. Handling corking was the only change between 0.9.66 an 0.9.67, see the chanelog:

Thu 17 Oct 2019 04:50:52 PM CEST
    Integrate 0-byte send() method for uncorking for old FreeBSD/OS X
    systems into new mhd_send.c logic for uncorking.
    Releasing libmicrohttpd 0.9.67. -CG

Fri 18 Aug 2019 00:00:00 PM UTC
    Fixes and optimizations for the setsockopt handling:
    * Added: MHD_UPGRADE_ACTION_CORK_ON and MHD_UPGRADE_ACTION_CORK_OFF
      to enum MHD_UpgradeAction (turn corking on/off on the underlying
      socket).
    * Use calls and flags native to the system for corking and
      other operations, tested with performance improvements on
      FreeBSD, Debian Linux, NetBSD, and cygwin. In particular,
      this adds selective usage of MSG_MORE, NODELAY, TCP_NOPUSH,
      TCP_CORK. -ng0

Reply all
Reply to author
Forward
0 new messages