[Libwebsockets] [libwebsockets] #46: Does not work with Safari for Windows and Safari for iOS

Graham Newton gnewton at peavey-eu.com
Thu Nov 7 11:04:19 CET 2013


Hi Andy
You are right to find it hard to believe.
Initial tests indicated that it was all broken for Safari. However 
further test have shown this:

5.1.7-- draft-76
6.1 -- rfc-6455
7.0.3 -- rfc-6455

Tested using websocketstest.com

Thanks for your patience.

Regards
Graham

On 06/11/13 21:36, "Andy Green (林安廸)" wrote:
> On 06/11/13 20:09, the mail apparently from Graham Newton included:
>> Andy
>> I realise that you have good reasons for doing this but I would like to
>> flag that this is causing me an issue as well.
>> This is just to indicate that aleksandr is not the only one!!
>> I know that Apple are a pain in this respect but in the real world we
>> have to deal with them.
>
> Is it really true that "Safari" as a whole does not support anything 
> later than 00 / 76?
>
> http://caniuse.com/websockets
>
> says that 6.0, 6.1 and 7.0 "support websockets", does that mean the 
> released RFC or the old stuff?  No version of Safari supports the 
> released version of the spec?  It's hard to believe.
>
> -Andy
>
>
>> Regards
>> Graham
>>
>> On 06/11/13 10:07, Trac wrote:
>>> #46: Does not work with Safari for Windows and Safari for iOS
>>> ------------------------------------+------------------------
>>>    Reporter:  aleksandr.gutenev      |      Owner:
>>>        Type:  enhancement            |     Status:  closed
>>>    Priority:  major                  |  Milestone:
>>>   Component:  libwebsockets library  |    Version:
>>> Resolution:  wontfix                |   Keywords:  Safari iOS
>>> ------------------------------------+------------------------
>>> Changes (by agreen):
>>>
>>>   * status:  new => closed
>>>   * resolution:   => wontfix
>>>
>>>
>>> Old description:
>>>
>>>> Safari uses old version of !WebSocket protocol.
>>>>
>>>> Its request look like this:
>>>> {{{
>>>> GET / HTTP/1.1
>>>> Upgrade: WebSocket
>>>> Connection: Upgrade
>>>> Host: 172.28.100.5
>>>> Origin:http://172.28.100.5
>>>> Sec-WebSocket-Key1: J  g1 8 e4 43X6T76  m0V   Sc  0u
>>>> Sec-WebSocket-Key2: 38K+   9207FV|  li8 o92  {q8
>>>>
>>>> 
NbEMq1
>>>> }}}
>>>>
>>>> As I can see, WSI_TOKEN_KEY1 and WSI_TOKEN_KEY2 are parsed but not 
>>>> used.
>>>>
>>>> Any plans on supporting this?
>>> New description:
>>>
>>>   Safari uses old version of !WebSocket protocol.
>>>
>>>   Its request look like this:
>>>   {{{
>>>   GET / HTTP/1.1
>>>   Upgrade: WebSocket
>>>   Connection: Upgrade
>>>   Host: 172.28.100.5
>>>   Origin:http://172.28.100.5
>>>   Sec-WebSocket-Key1: J  g1 8 e4 43X6T76  m0V   Sc  0u
>>>   Sec-WebSocket-Key2: 38K+   9207FV|  li8 o92  {q8
>>>
>>>   NbEMq1
>>>   }}}
>>>
>>>   As I can see, WSI_TOKEN_KEY1 and WSI_TOKEN_KEY2 are parsed but not 
>>> used.
>>>
>>>   Any plans on supporting this?
>>>
>>> -- 
>>>
>>> Comment:
>>>
>>>   Yes that version is very old and before the first official version 
>>> of the
>>>   standard.
>>>
>>>   Older versions of libwebsockets supported it but I took it out 
>>> since the
>>>   code to support it became untested cruft.  Anything that's getting
>>>   maintained in the last year is using he release version of the 
>>> protocol
>>>   definition.
>>>
>>>   So the problem is more that Safari doesn't support the release 
>>> version of
>>>   websockets standard rather than something libwebsockets should do.
>>>
>>> -- 
>>> Ticket 
>>> URL:<http://libwebsockets.org/trac/libwebsockets/ticket/46#comment:1>
>>> libwebsockets<http://libwebsockets.org>
>>> libwebsockets C library
>>> _______________________________________________
>>> Libwebsockets mailing list
>>> Libwebsockets at ml.libwebsockets.org
>>> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>>
>> -- 
>> Graham Newton
>> Senior Software Engineer
>> ------------------------------------------------------------------------
>> Peavey Digital Research
>> A Division of Peavey Electronics Corporation
>>
>>
>> Phone     +44 1865 734397
>> Direct     +44 1865 734397
>> Email     gnewton at peavey-eu.com
>> Web     www.peaveycommercialaudio.com
>> <http://www.peaveycommercialaudio.com> - mm.peavey.com
>> <http://mm.peavey.com> - www.crestaudio.com <http://www.crestaudio.com>
>> - aa.peavey.com <http://aa.peavey.com> - www.peaveyoxford.com
>> <http://www.peaveyoxford.com>
>>
>>
>> *PEAVEY COMMERCIAL AUDIO* - Great Folds Road, Corby, Northamptonshire,
>> NN18 9ET UK
>> *PEAVEY DIGITAL RESEARCH* - 6 Elm Place, Eynsham, Oxfordshire OX29 
>> 4BD UK
>> *PEAVEY ITALIA* - Via P.La Torre 21, Zona Ind.le Cerretano, 60022
>> Castelfidardo An, Italy
>> *PEAVEY CHINA* - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou, Shenzhen
>> China 518067
>> *PEAVEY ELECTRONICS CORPORATION* - 5022 Hartley Peavey Drive, Meridian,
>> MS 39305 USA
>>
>>
>> Peavey Electronics Limited is a registered company in England & Wales,
>> Company Registration No.: 01249126
>> Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY NORTHAMPTONSHIRE.
>> NN18 9ET
>>
>>
>>
>> _______________________________________________
>> Libwebsockets mailing list
>> Libwebsockets at ml.libwebsockets.org
>> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets
>>
>

-- 
Graham Newton
Senior Software Engineer
------------------------------------------------------------------------
Peavey Digital Research
A Division of Peavey Electronics Corporation


Phone 	+44 1865 734397
Direct 	+44 1865 734397
Email 	gnewton at peavey-eu.com
Web 	www.peaveycommercialaudio.com 
<http://www.peaveycommercialaudio.com> - mm.peavey.com 
<http://mm.peavey.com> - www.crestaudio.com <http://www.crestaudio.com> 
- aa.peavey.com <http://aa.peavey.com> - www.peaveyoxford.com 
<http://www.peaveyoxford.com>


*PEAVEY COMMERCIAL AUDIO* - Great Folds Road, Corby, Northamptonshire, 
NN18 9ET UK
*PEAVEY DIGITAL RESEARCH* - 6 Elm Place, Eynsham, Oxfordshire OX29 4BD UK
*PEAVEY ITALIA* - Via P.La Torre 21, Zona Ind.le Cerretano, 60022 
Castelfidardo An, Italy
*PEAVEY CHINA* - 1F Taiping Yaoye, 3 Gongye Wu Lu, Shekou, Shenzhen 
China 518067
*PEAVEY ELECTRONICS CORPORATION* - 5022 Hartley Peavey Drive, Meridian, 
MS 39305 USA


Peavey Electronics Limited is a registered company in England & Wales, 
Company Registration No.: 01249126
Registered office: GREAT FOLDS ROAD OAKLEY HAY CORBY NORTHAMPTONSHIRE. 
NN18 9ET

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20131107/07358d93/attachment-0001.html>


More information about the Libwebsockets mailing list