Dear Wolfgang,

i've added a config option to nswebpush (for a default setting)
and a switch "-nopadding" to webpush::send for per-message control.
The default is still the (in general recommended) padding mode. The
version passed the regression test against the to-be-released version
of NaviServer on bitbucket.

A short feedback, if this works for you is welcome, i am abroad
and have no good testing environment.

-g

On 02.01.20 12:38, Wolfgang Winkler wrote:

Hello!

When testing webpush with various clients, we encountered a problem with Firefox on Android.

    Webpush failed with status 413!

    {{"code": 413, "errno": 104, "error": "Payload Too Large",
    "more_info":
    "http://autopush.readthedocs.io/en/latest/http.html#error-codes";,
    "message": "This message is intended for a constrained device and
    is limited to 3070 bytes. Converted buffer too long by 1366 bytes"}

This is a known problem and Mozilla is obviously not going to fix it:

https://github.com/mozilla-services/autopush/issues/748

With padding switched off (we just set the paddingLength in padData to 0), the messages are delivered.

Maybe a switch in webpush::send for disabling padding could be used to circumvent this problem.

regards,

Wolfgang

--

*Wolfgang Winkler*
Geschäftsführung
wolfgang.wink...@digital-concepts.com
mobil +43.699.19971172

dc:*büro*
digital concepts Novak Winkler OG
Software & Design
Landstraße 68, 5. Stock, 4020 Linz
www.digital-concepts.com <http://www.digital-concepts.com>
tel +43.732.997117.72
tel +43.699.1997117.2

Firmenbuchnummer: 192003h
Firmenbuchgericht: Landesgericht Linz




_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to