[Libwebsockets] Is there a limit on the path size?

Andy Green andy at warmcat.com
Mon Nov 21 19:14:28 CET 2016



On November 21, 2016 9:47:15 PM GMT+08:00, Stephen James <sajames1958 at gmail.com> wrote:
>From devtools in chrome (could it have to do with URL encoding of the
>token?)
>
>GET wss://
>stream.watsonplatform.net/speech-to-text/api/v1/recognize?watson-token=tT%2Bm5FqzWo1tMpWmyJWPvHb1U220j6ny62Xhb3ZYU0iYU9HllbTrqkq7YXlk%2FLRxUEVeowxaTvtTmUTGXmqlFjFEjt0qGe3zderuNQLYmplWomKnNyVUNzPt7SIQGoR3qX5ZLYP9K%2BbEboOjCQ6z3%2FUoySBQfzybhQaqAQ8IvjRXefrq22JHyFlVvMS2BV3bi1dz9DjrUTOy%2FjWZR4xSACm2d%2FxxWal%2FPNBZEi5zJ5FjqZmLfeR9X2Y%2BD%2FfmNyL%2BN91sSAWxueCoRrPyC5oxtMeZk121ArZ%2FcnWkUv50DKt04de1xEcu0FvbrtAox45xnPjKB4j62y16Fsx7prCXS9E%2FJka4BpnewOtt6BoGhabmxVINH%2F%2BoSbwlVXvTxJUGJTE4wP6mna%2B01dLB%2FgLUM51pIqSPoThfM5NkDfGhCXReAcHaWn%2BEZg814MFCSd%2BGaDxwZXkGENewsLe35Msm7UXCN2kmA9CGh1tz212w0LxrMwpnzfUq5ek%2FcFwtgkSZF9J%2BFpygtl26uDUFO1hLbYdeq6wVawFwdWWVbT6aXn1GYyQOxUGoyB6sfy6iLY19frQJjuIF5D8W4hVhv1Z8g%2B7d%2Fm8N2UjMvL4e6nCe32eLADdoZ8uP9A%2FvP8nrkph3Tb61l1nnVPUgmo2KksOj9oHaaMPU8BQTB%2BOeaKn08HsJCh6UvFdR8Rsq6B4dBDMd%2Fn%2FXxuE162dtBtcXP9tTfn46NX6Lt9XYrfD3ouWjLGPBB5fbxTHHyrzsg4l69KMZQX5azN%2BDQppmJ6e8JXYX3owHBDog0Gdlm3ONpKQa9g65osO7rJFN2kqpnMvhmA53ngUSpa%2BVRNd17akObf%2F8jOR%2FOP5UlVgwu8
FKJ8PCv7p25nhGb8lPTfLk2GhiLi1ysb4YPkf0FoHG3%2FjB5ddBPvvf2QEfRqAVCsOtBdAH1h8FwDQf25p%2FBw%3D%3D
>HTTP/1.1
>Host: stream.watsonplatform.net
>Connection: Upgrade
>Pragma: no-cache
>Cache-Control: no-cache
>Upgrade: websocket
>Origin: http://192.168.1.29
>Sec-WebSocket-Version: 13
>User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,
>like
>Gecko) Chrome/54.0.2840.100 Safari/537.36
>Accept-Encoding: gzip, deflate, sdch, br
>Accept-Language: en-US,en;q=0.8
>Sec-WebSocket-Key: 3zGpiHbuJfxSyNIbQyPfUw==
>Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
>
>HTTP/1.1 101 Switching Protocols
>Connection: Upgrade
>Sec-WebSocket-Accept: iHEFs+wLbQe+TI8yCd40cdth1Co=
>Sec-WebSocket-Extensions: permessage-deflate;client_max_window_bits=15
>Date: Mon, 21 Nov 2016 13:27:40 GMT
>Server: -
>X-Global-Transaction-ID: 237434796
>Content-Type:
>X-DP-Watson-Tran-ID: stream-dp02-237434796
>Upgrade: websocket
>
>GET wss://
>stream.watsonplatform.net/speech-to-text/api/v1/recognize?watson-token=tT%2Bm5FqzWo1tMpWmyJWPvHb1U220j6ny62Xhb3ZYU0iYU9HllbTrqkq7YXlk%2FLRxUEVeowxaTvtTmUTGXmqlFjFEjt0qGe3zderuNQLYmplWomKnNyVUNzPt7SIQGoR3qX5ZLYP9K%2BbEboOjCQ6z3%2FUoySBQfzybhQaqAQ8IvjRXefrq22JHyFlVvMS2BV3bi1dz9DjrUTOy%2FjWZR4xSACm2d%2FxxWal%2FPNBZEi5zJ5FjqZmLfeR9X2Y%2BD%2FfmNyL%2BN91sSAWxueCoRrPyC5oxtMeZk121ArZ%2FcnWkUv50DKt04de1xEcu0FvbrtAox45xnPjKB4j62y16Fsx7prCXS9E%2FJka4BpnewOtt6BoGhabmxVINH%2F%2BoSbwlVXvTxJUGJTE4wP6mna%2B01dLB%2FgLUM51pIqSPoThfM5NkDfGhCXReAcHaWn%2BEZg814MFCSd%2BGaDxwZXkGENewsLe35Msm7UXCN2kmA9CGh1tz212w0LxrMwpnzfUq5ek%2FcFwtgkSZF9J%2BFpygtl26uDUFO1hLbYdeq6wVawFwdWWVbT6aXn1GYyQOxUGoyB6sfy6iLY19frQJjuIF5D8W4hVhv1Z8g%2B7d%2Fm8N2UjMvL4e6nCe32eLADdoZ8uP9A%2FvP8nrkph3Tb61l1nnVPUgmo2KksOj9oHaaMPU8BQTB%2BOeaKn08HsJCh6UvFdR8Rsq6B4dBDMd%2Fn%2FXxuE162dtBtcXP9tTfn46NX6Lt9XYrfD3ouWjLGPBB5fbxTHHyrzsg4l69KMZQX5azN%2BDQppmJ6e8JXYX3owHBDog0Gdlm3ONpKQa9g65osO7rJFN2kqpnMvhmA53ngUSpa%2BVRNd17akObf%2F8jOR%2FOP5UlVgwu8
FKJ8PCv7p25nhGb8lPTfLk2GhiLi1ysb4YPkf0FoHG3%2FjB5ddBPvvf2QEfRqAVCsOtBdAH1h8FwDQf25p%2FBw%3D%3D
>HTTP/1.1
>Host: stream.watsonplatform.net
>Connection: Upgrade
>Pragma: no-cache
>Cache-Control: no-cache
>Upgrade: websocket
>Origin: http://192.168.1.29
>Sec-WebSocket-Version: 13
>User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,
>like
>Gecko) Chrome/54.0.2840.100 Safari/537.36
>Accept-Encoding: gzip, deflate, sdch, br
>Accept-Language: en-US,en;q=0.8
>Sec-WebSocket-Key: 3zGpiHbuJfxSyNIbQyPfUw==
>Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
>
>the $TOKEN value is just a way to pass the a different token into the
>program easier.

Yeah.  What I meant was

 - you didn't show what you put in it.  So it was difficult to see how what you printed related to it.

 - you need to quote dereferences of bash env vars, or you'll get an unpleasant shock when it unexpectedly includes certain characters

It seems from github you found the problem in a stash used to hold the path between the first part of client connect and the later async steps after connect.  That sounds right, I'll take a look in the morning (+5h).

-Andy

>On Mon, Nov 21, 2016 at 7:17 AM Andy Green <andy at warmcat.com> wrote:
>
>> On Mon, 2016-11-21 at 13:47 +0100, Edwin van den Oetelaar wrote:
>> > Just a guess
>> >
>> > Where does :
>> >
>> > X-Backside-transport : FAIL FAIL
>> > Connection : close
>> >
>> > come from ?
>>
>> From the remote server...
>>
>> But I think the idea is since a browser can connect, his client app
>> using lws provokes that response.
>>
>> If that's the reasoning, it's nice if you can use the developer tools
>> in the browser to see exactly what the browser sent (since difficult
>> with SSL otherwise) and compare it to what the lws solution sent.
>>
>> > On Mon, Nov 21, 2016 at 1:36 PM, Stephen James
><sajames1958 at gmail.com
>> > > wrote:
>> > > It doesn't appear that truncation is the issue I had modified the
>> > > test client for path size and setting the max_http_header_data
>> > > larger did not seem to have any effect.
>> > > Here is the output from running the test client, I am at a loss -
>> > > any help would truly be appreciated.
>> > >
>> > >
>> > > nzgpu at nzgpu:~/Development/websocketclient$ LD_LIBRARY_PATH=.
>./ws-
>> > > client --ssl -d65535 -t $TOKEN
>> > > wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize
>>
>> Hm you give the path "speech-to-text/..." here
>>
>> > > [2016/11/21 06:33:02:6186] NOTICE: Token size: 1022
>> > > Path: -/speech-to-text/api/v1/recognize?watson-
>>
>> and here?
>>
>> It's not clear what $TOKEN is (it should anyway be, "$TOKEN" for
>bash).
>>
>> -Andy
>>
>> > >
>token=LemEbpB3KIerGh4X4AGnKsniqYn13pAp%2FrAzDLzccInzaPk%2FekTXEOFvh
>> > >
>fUc1dooOzcuts10P9%2FVAFFxREBpBKt868IyKFcRjQVi1Fct3A3gzr67LSzH62nVil
>> > >
>OL7%2F%2Fuzyi5CXwfBM%2BOZGYtblr%2BFrO4FKc5pu9ja8rRsdWDG1D7svZnH0jXP
>> > >
>Rpn2WDWRyBaT6nPVp0V11wCYyEaThOQzD%2FBWOTmKlzmLczjYagzoiwKSTnuTubrv7
>> > >
>FMgrFXuUJK6smYXDcr82KoLTXno2ArpaQgxe5qOtq9HVRuFl%2F2PBfz9pMGveHcitz
>> > >
>9lBLtFU9p0GMIJelqwLooaj5vvNXqZxMKQmGwlyK51Byd%2By0PTF90t%2BdlekEM5N
>> > >
>yYbX4v4yUfuOTgDsc7j%2B3o6VFeqOoavogvoa4VNROF2V1CNCG6i%2BiCzbNI%2B3Y
>> > >
>J8S1qjbLx9dYeTIf4%2FSRlnd6OHN0uwQi57tWXYT1Np3Xao7hz9%2F%2FJrlwqMO9f
>> > >
>KCXH7VUcbTS5t%2Fzav8FK1HAuoqrUh%2BeA3vOABMjT6xMZrG9TSVOobWLB8tLB50%
>> > >
>2BtU9cxMMjjWmQxnLPGAjXs3JAsE9TuOcNBoMsMvJ17maRJG2SX0tkipFHQrBAzUygl
>> > >
>oPuokn%2Fgmsmk1aIypazsASOrsTbyXx3kuHDvbliL3xgl9Dwp0uOPf3nWWgTx%2BaI
>> > >
>OI5O6PXk6Ua936r34J35lD2rtwVNMA%2F3R46zRJl2dDcKSBoCkCo9LPAeZaVywrAit
>> > >
>WjpCsXXGctbg93CJBQqCoggjjxySVhus1W7oA2GHFyVM113wFJOV3ASNQKcInU9%2F5
>> > >
>N%2FNWt%2FQ8cacjLUCWEeQ3uOhvhr4yTxQGWHJQ4V3vYeL2W3%2B0%2BG7u1iLbxtR
>> > >
>5C7MR1s9bg5gY6gT%2F%2FLK7WXni3papbOt%2FbF%2FnV2hZVv2eXIaqmOX6%2FyBF
>> > > iLac8RAwsfqPjjsBA%3D%3D-
>> > > [2016/11/21 06:33:02:6187] NOTICE:  Using SSL
>> > > [2016/11/21 06:33:02:6187] NOTICE:  Selfsigned certs allowed
>> > > [2016/11/21 06:33:02:6187] NOTICE:  Skipping peer cert hostname
>> > > check
>> > > [2016/11/21 06:33:02:6187] NOTICE: Initial logging level 65535
>> > > [2016/11/21 06:33:02:6188] NOTICE: Libwebsockets version: 2.1.0
>nzg
>> > > pu at nzgpu-v2.0.0-181-gc3b676b
>> > > [2016/11/21 06:33:02:6188] NOTICE: IPV6 not compiled in
>> > > [2016/11/21 06:33:02:6188] NOTICE: libev support not compiled in
>> > > [2016/11/21 06:33:02:6188] NOTICE: libuv support not compiled in
>> > > [2016/11/21 06:33:02:6188] INFO:  LWS_DEF_HEADER_LEN    : 4096
>> > > [2016/11/21 06:33:02:6188] INFO:  LWS_MAX_PROTOCOLS     : 5
>> > > [2016/11/21 06:33:02:6189] INFO:  LWS_MAX_SMP           : 32
>> > > [2016/11/21 06:33:02:6189] INFO:  SPEC_LATEST_SUPPORTED : 13
>> > > [2016/11/21 06:33:02:6189] INFO:  sizeof (*info)        : 328
>> > > [2016/11/21 06:33:02:6189] INFO:  SYSTEM_RANDOM_FILEPATH:
>> > > '/dev/urandom'
>> > > [2016/11/21 06:33:02:6189] INFO:  default timeout (secs): 20
>> > > [2016/11/21 06:33:02:6190] NOTICE:  Threads: 1 each 1024 fds
>> > > [2016/11/21 06:33:02:6190] INFO:  mem: context:          9280
>bytes
>> > > (5184 ctx + (1 thr x 4096))
>> > > [2016/11/21 06:33:02:6190] INFO:  mem: http hdr rsvd:   30720
>bytes
>> > > (1 thr x (4096 + 3584) x 4))
>> > > [2016/11/21 06:33:02:6190] INFO:  mem: pollfd map:       8192
>> > > [2016/11/21 06:33:02:6191] NOTICE:  mem: platform fd map:  8192
>> > > bytes
>> > > [2016/11/21 06:33:02:6191] NOTICE:  Compiled with OpenSSL support
>> > > [2016/11/21 06:33:02:6235] NOTICE: Creating Vhost 'default' port
>> > > -1, 1 protocols, IPv6 off
>> > > [2016/11/21 06:33:02:6239] INFO:  SSL options 0x3520004
>> > > [2016/11/21 06:33:02:6241] INFO:  LWS_MAX_EXTENSIONS_ACTIVE: 2
>> > > [2016/11/21 06:33:02:6242] NOTICE:  mem: per-conn:          512
>> > > bytes + protocol rx buf
>> > > [2016/11/21 06:33:02:6242] NOTICE:  canonical_hostname = nzgpu
>> > > [2016/11/21 06:33:02:6242] NOTICE: using wss mode (ws)
>> > > [2016/11/21 06:33:02:6243] NOTICE: client: connecting
>> > > [2016/11/21 06:33:02:6243] NOTICE: lws_protocol_init
>> > > [2016/11/21 06:33:02:6243] DEBUG: lws_union_transition:
>0x2537e50:
>> > > mode 32
>> > > [2016/11/21 06:33:02:6244] INFO: lws_header_table_attach: wsi
>> > > 0x2537e50: ah (nil) (tsi 0, count = 0) in
>> > > [2016/11/21 06:33:02:6244] INFO: lws_header_table_attach: wsi
>> > > 0x2537e50: ah 0x2510fe0: count 1 (on exit)
>> > > [2016/11/21 06:33:02:6245] CLIENT: lws_client_connect: direct
>conn
>> > > [2016/11/21 06:33:02:6245] CLIENT: lws_client_connect_2
>> > > [2016/11/21 06:33:02:6246] CLIENT: lws_client_connect_2: address
>> > > stream.watsonplatform.net
>> > > [2016/11/21 06:33:02:6271] DEBUG: insert_wsi_socket_into_fds:
>> > > 0x2537e50: tsi=0, sock=6, pos-in-fds=1
>> > > [2016/11/21 06:33:02:6271] DEBUG: lws_set_timeout: 0x2537e50: 20
>> > > secs
>> > > [2016/11/21 06:33:02:6273] CLIENT: nonblocking connect retry
>(errno
>> > > = 115)
>> > > [2016/11/21 06:33:02:6381] DEBUG: fd=6, revents=4
>> > > [2016/11/21 06:33:02:6381] CLIENT: lws_client_connect_2
>> > > [2016/11/21 06:33:02:6381] CLIENT: lws_client_connect_2: address
>> > > stream.watsonplatform.net
>> > > [2016/11/21 06:33:02:6393] CLIENT: connected
>> > > [2016/11/21 06:33:02:6393] DEBUG: lws_set_timeout: 0x2537e50: 20
>> > > secs
>> > > [2016/11/21 06:33:02:6393] DEBUG: fd=6, revents=1
>> > > [2016/11/21 06:33:02:6527] DEBUG: fd=6, revents=1
>> > > [2016/11/21 06:33:02:6717] DEBUG: fd=6, revents=1
>> > > [2016/11/21 06:33:02:6720] DEBUG: lws_set_timeout: 0x2537e50: 20
>> > > secs
>> > > [2016/11/21 06:33:02:6721] DEBUG: lws_set_timeout: 0x2537e50: 20
>> > > secs
>> > > [2016/11/21 06:33:02:6850] DEBUG: fd=6, revents=1
>> > > [2016/11/21 06:33:02:6851] PARSER: WSI_TOKEN_NAME_PART 'H'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6852] PARSER: WSI_TOKEN_NAME_PART 'T'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6852] PARSER: WSI_TOKEN_NAME_PART 'T'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6853] PARSER: WSI_TOKEN_NAME_PART 'P'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6853] PARSER: WSI_TOKEN_NAME_PART '/'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6853] PARSER: WSI_TOKEN_NAME_PART '1'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6853] PARSER: WSI_TOKEN_NAME_PART '.'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6854] PARSER: WSI_TOKEN_NAME_PART '1'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6854] PARSER: WSI_TOKEN_NAME_PART ' '
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6854] PARSER: known hdr 15
>> > > [2016/11/21 06:33:02:6854] PARSER: WSI_TOK_(15) '4'
>> > > [2016/11/21 06:33:02:6855] PARSER: WSI_TOK_(15) '0'
>> > > [2016/11/21 06:33:02:6855] PARSER: WSI_TOK_(15) '0'
>> > > [2016/11/21 06:33:02:6855] PARSER: WSI_TOK_(15) ' '
>> > > [2016/11/21 06:33:02:6855] PARSER: WSI_TOK_(15) 'I'
>> > > [2016/11/21 06:33:02:6856] PARSER: WSI_TOK_(15) 'n'
>> > > [2016/11/21 06:33:02:6856] PARSER: WSI_TOK_(15) 't'
>> > > [2016/11/21 06:33:02:6856] PARSER: WSI_TOK_(15) 'e'
>> > > [2016/11/21 06:33:02:6857] PARSER: WSI_TOK_(15) 'r'
>> > > [2016/11/21 06:33:02:6857] PARSER: WSI_TOK_(15) 'n'
>> > > [2016/11/21 06:33:02:6857] PARSER: WSI_TOK_(15) 'a'
>> > > [2016/11/21 06:33:02:6857] PARSER: WSI_TOK_(15) 'l'
>> > > [2016/11/21 06:33:02:6858] PARSER: WSI_TOK_(15) ' '
>> > > [2016/11/21 06:33:02:6858] PARSER: WSI_TOK_(15) 'S'
>> > > [2016/11/21 06:33:02:6858] PARSER: WSI_TOK_(15) 'e'
>> > > [2016/11/21 06:33:02:6858] PARSER: WSI_TOK_(15) 'r'
>> > > [2016/11/21 06:33:02:6859] PARSER: WSI_TOK_(15) 'v'
>> > > [2016/11/21 06:33:02:6859] PARSER: WSI_TOK_(15) 'e'
>> > > [2016/11/21 06:33:02:6859] PARSER: WSI_TOK_(15) 'r'
>> > > [2016/11/21 06:33:02:6859] PARSER: WSI_TOK_(15) ' '
>> > > [2016/11/21 06:33:02:6860] PARSER: WSI_TOK_(15) 'E'
>> > > [2016/11/21 06:33:02:6860] PARSER: WSI_TOK_(15) 'r'
>> > > [2016/11/21 06:33:02:6860] PARSER: WSI_TOK_(15) 'r'
>> > > [2016/11/21 06:33:02:6860] PARSER: WSI_TOK_(15) 'o'
>> > > [2016/11/21 06:33:02:6861] PARSER: WSI_TOK_(15) 'r'
>> > > '2016/11/21 06:33:02:6861] PARSER: WSI_TOK_(15) '
>> > > [2016/11/21 06:33:02:6861] PARSER: *
>> > > [2016/11/21 06:33:02:6861] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
>> > > '
>> > > [2016/11/21 06:33:02:6862] PARSER: WSI_TOKEN_NAME_PART 'C'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6862] PARSER: WSI_TOKEN_NAME_PART 'o'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6862] PARSER: WSI_TOKEN_NAME_PART 'n'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6863] PARSER: WSI_TOKEN_NAME_PART 't'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6863] PARSER: WSI_TOKEN_NAME_PART 'e'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6863] PARSER: WSI_TOKEN_NAME_PART 'n'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6864] PARSER: WSI_TOKEN_NAME_PART 't'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6864] PARSER: WSI_TOKEN_NAME_PART '-'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6864] PARSER: WSI_TOKEN_NAME_PART 'T'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6864] PARSER: WSI_TOKEN_NAME_PART 'y'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6865] PARSER: WSI_TOKEN_NAME_PART 'p'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6865] PARSER: WSI_TOKEN_NAME_PART 'e'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6865] PARSER: WSI_TOKEN_NAME_PART ':'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6865] PARSER: known hdr 28
>> > > [2016/11/21 06:33:02:6866] PARSER: WSI_TOK_(28) ' '
>> > > [2016/11/21 06:33:02:6866] PARSER: WSI_TOK_(28) 't'
>> > > [2016/11/21 06:33:02:6866] PARSER: WSI_TOK_(28) 'e'
>> > > [2016/11/21 06:33:02:6866] PARSER: WSI_TOK_(28) 'x'
>> > > [2016/11/21 06:33:02:6867] PARSER: WSI_TOK_(28) 't'
>> > > [2016/11/21 06:33:02:6867] PARSER: WSI_TOK_(28) '/'
>> > > [2016/11/21 06:33:02:6867] PARSER: WSI_TOK_(28) 'h'
>> > > [2016/11/21 06:33:02:6867] PARSER: WSI_TOK_(28) 't'
>> > > [2016/11/21 06:33:02:6868] PARSER: WSI_TOK_(28) 'm'
>> > > [2016/11/21 06:33:02:6868] PARSER: WSI_TOK_(28) 'l'
>> > > '2016/11/21 06:33:02:6868] PARSER: WSI_TOK_(28) '
>> > > [2016/11/21 06:33:02:6868] PARSER: *
>> > > [2016/11/21 06:33:02:6869] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
>> > > '
>> > > [2016/11/21 06:33:02:6869] PARSER: WSI_TOKEN_NAME_PART 'X'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6869] PARSER: WSI_TOKEN_NAME_PART '-'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6870] PARSER: WSI_TOKEN_NAME_PART 'D'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6870] PARSER: WSI_TOKEN_SKIPPING 'P'
>> > > [2016/11/21 06:33:02:6870] PARSER: WSI_TOKEN_SKIPPING '-'
>> > > [2016/11/21 06:33:02:6870] PARSER: WSI_TOKEN_SKIPPING 'W'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING 'a'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING 't'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING 's'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING 'o'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING 'n'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING '-'
>> > > [2016/11/21 06:33:02:6871] PARSER: WSI_TOKEN_SKIPPING 'T'
>> > > [2016/11/21 06:33:02:6872] PARSER: WSI_TOKEN_SKIPPING 'r'
>> > > [2016/11/21 06:33:02:6872] PARSER: WSI_TOKEN_SKIPPING 'a'
>> > > [2016/11/21 06:33:02:6872] PARSER: WSI_TOKEN_SKIPPING 'n'
>> > > [2016/11/21 06:33:02:6872] PARSER: WSI_TOKEN_SKIPPING '-'
>> > > [2016/11/21 06:33:02:6872] PARSER: WSI_TOKEN_SKIPPING 'I'
>> > > [2016/11/21 06:33:02:6872] PARSER: WSI_TOKEN_SKIPPING 'D'
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING ':'
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING ' '
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING 's'
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING 't'
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING 'r'
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING 'e'
>> > > [2016/11/21 06:33:02:6873] PARSER: WSI_TOKEN_SKIPPING 'a'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING 'm'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING '-'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING 'd'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING 'p'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING '0'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING '2'
>> > > [2016/11/21 06:33:02:6874] PARSER: WSI_TOKEN_SKIPPING '-'
>> > > [2016/11/21 06:33:02:6875] PARSER: WSI_TOKEN_SKIPPING '2'
>> > > [2016/11/21 06:33:02:6875] PARSER: WSI_TOKEN_SKIPPING '3'
>> > > [2016/11/21 06:33:02:6875] PARSER: WSI_TOKEN_SKIPPING '7'
>> > > [2016/11/21 06:33:02:6875] PARSER: WSI_TOKEN_SKIPPING '3'
>> > > [2016/11/21 06:33:02:6875] PARSER: WSI_TOKEN_SKIPPING '6'
>> > > [2016/11/21 06:33:02:6875] PARSER: WSI_TOKEN_SKIPPING '7'
>> > > [2016/11/21 06:33:02:6876] PARSER: WSI_TOKEN_SKIPPING '6'
>> > > [2016/11/21 06:33:02:6876] PARSER: WSI_TOKEN_SKIPPING '7'
>> > > [2016/11/21 06:33:02:6876] PARSER: WSI_TOKEN_SKIPPING '6'
>> > > '2016/11/21 06:33:02:6876] PARSER: WSI_TOKEN_SKIPPING '
>> > > [2016/11/21 06:33:02:6876] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
>> > > '
>> > > [2016/11/21 06:33:02:6876] PARSER: WSI_TOKEN_NAME_PART 'X'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_NAME_PART '-'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_NAME_PART 'B'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_SKIPPING 'a'
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_SKIPPING 'c'
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_SKIPPING 'k'
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_SKIPPING 's'
>> > > [2016/11/21 06:33:02:6877] PARSER: WSI_TOKEN_SKIPPING 'i'
>> > > [2016/11/21 06:33:02:6878] PARSER: WSI_TOKEN_SKIPPING 'd'
>> > > [2016/11/21 06:33:02:6878] PARSER: WSI_TOKEN_SKIPPING 'e'
>> > > [2016/11/21 06:33:02:6878] PARSER: WSI_TOKEN_SKIPPING '-'
>> > > [2016/11/21 06:33:02:6878] PARSER: WSI_TOKEN_SKIPPING 'T'
>> > > [2016/11/21 06:33:02:6878] PARSER: WSI_TOKEN_SKIPPING 'r'
>> > > [2016/11/21 06:33:02:6878] PARSER: WSI_TOKEN_SKIPPING 'a'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING 'n'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING 's'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING 'p'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING 'o'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING 'r'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING 't'
>> > > [2016/11/21 06:33:02:6879] PARSER: WSI_TOKEN_SKIPPING ':'
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING ' '
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING 'F'
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING 'A'
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING 'I'
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING 'L'
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING ' '
>> > > [2016/11/21 06:33:02:6880] PARSER: WSI_TOKEN_SKIPPING 'F'
>> > > [2016/11/21 06:33:02:6881] PARSER: WSI_TOKEN_SKIPPING 'A'
>> > > [2016/11/21 06:33:02:6881] PARSER: WSI_TOKEN_SKIPPING 'I'
>> > > [2016/11/21 06:33:02:6881] PARSER: WSI_TOKEN_SKIPPING 'L'
>> > > '2016/11/21 06:33:02:6881] PARSER: WSI_TOKEN_SKIPPING '
>> > > [2016/11/21 06:33:02:6881] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
>> > > '
>> > > [2016/11/21 06:33:02:6881] PARSER: WSI_TOKEN_NAME_PART 'C'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 'o'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 'n'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 'n'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 'e'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 'c'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 't'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6882] PARSER: WSI_TOKEN_NAME_PART 'i'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6883] PARSER: WSI_TOKEN_NAME_PART 'o'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6883] PARSER: WSI_TOKEN_NAME_PART 'n'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6883] PARSER: WSI_TOKEN_NAME_PART ':'
>> > > (mode=40)
>> > > [2016/11/21 06:33:02:6883] PARSER: known hdr 4
>> > > [2016/11/21 06:33:02:6883] PARSER: WSI_TOK_(4) ' '
>> > > [2016/11/21 06:33:02:6883] PARSER: WSI_TOK_(4) 'c'
>> > > [2016/11/21 06:33:02:6884] PARSER: WSI_TOK_(4) 'l'
>> > > [2016/11/21 06:33:02:6884] PARSER: WSI_TOK_(4) 'o'
>> > > [2016/11/21 06:33:02:6884] PARSER: WSI_TOK_(4) 's'
>> > > [2016/11/21 06:33:02:6884] PARSER: WSI_TOK_(4) 'e'
>> > > '2016/11/21 06:33:02:6884] PARSER: WSI_TOK_(4) '
>> > > [2016/11/21 06:33:02:6884] PARSER: *
>> > > [2016/11/21 06:33:02:6884] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
>> > > '
>> > > ' (mode=40) 06:33:02:6885] PARSER: WSI_TOKEN_NAME_PART '
>> > > [2016/11/21 06:33:02:6885] PARSER: WSI_TOKEN_NAME_PART '
>> > > ' (mode=40)
>> > > [2016/11/21 06:33:02:6885] PARSER: known hdr 8
>> > > [2016/11/21 06:33:02:6885] INFO: no ACCEPT
>> > > [2016/11/21 06:33:02:6885] NOTICE:
>> > > LWS_CALLBACK_CLIENT_CONNECTION_ERROR
>> > > [2016/11/21 06:33:02:6886] NOTICE: HS: ACCEPT missing
>> > > [2016/11/21 06:33:02:6886] INFO: closing connection due to bail2
>> > > connection error
>> > > [2016/11/21 06:33:02:6886] INFO: lws_close_free_wsi: real
>> > > just_kill_connection: 0x2537e50 (sockfd 6)
>> > > [2016/11/21 06:33:02:6886] INFO: remove_wsi_socket_from_fds:
>> > > removing same prot wsi 0x2537e50
>> > > [2016/11/21 06:33:02:6886] DEBUG: remove_wsi_socket_from_fds:
>> > > wsi=0x2537e50, sock=6, fds pos=1, end guy pos=2, endfd=0
>> > > [2016/11/21 06:33:02:6887] DEBUG: not calling back closed mode=40
>> > > state=7
>> > > [2016/11/21 06:33:02:6889] INFO: ah det due to close
>> > > [2016/11/21 06:33:02:6890] INFO: lws_header_table_detach: wsi
>> > > 0x2537e50: ah 0x2510fe0 (tsi=0, count = 1)
>> > > [2016/11/21 06:33:02:6890] INFO: lws_header_table_detach: wsi
>> > > 0x2537e50: ah 0x2510fe0 (tsi=0, count = 0)
>> > > [2016/11/21 06:33:02:6890] DEBUG: lws_free_wsi: 0x2537e50,
>> > > remaining wsi 0
>> > >
>> > >
>> > > On Fri, Nov 18, 2016 at 3:58 PM Andy Green <andy at warmcat.com>
>> > > wrote:
>> > > >
>> > > > On November 19, 2016 3:59:24 AM GMT+08:00, Stephen James
><sajames
>> > > > 1958 at gmail.com> wrote:
>> > > > >/speech-to-text/api/v1/recognize?watson-
>> > > >
>token=2wjkP%2BiLbVPuZM7%2FgZIWHzBgiLl7RSMS3pnvFVeTC%2BeOh0a3eV0tn
>> > > >
>F73gXlxWGfDRGM8fq%2FUzG9gCIKMuAHJhu2ZpPp3m2Sg44%2FPcibuOfwjkiYhdZ
>> > > >
>3A3dE%2BFNxEXU%2F14DswB5LwnyF9BaVQs%2BED2cpxUSpVuf77IJ8x5GrqvKuC9
>> > > >
>r6mKcWu6LaniQkxEdl8EK5%2F5OffgE5YkI8KzZXQR7568wRvXxNLf0JE0s84Je55
>> > > >
>ZAgAURJTS9rRF3A0O4xL%2Fr8FOm8aqh1czeHIZZj9CFEM3xSZ6788kfHD0retQUx
>> > > >
>dYJ0fCYFp1WNeVgZ44ilqQQjA3zGIBZSDzO2XnaV1RhAOsTYs111zP7YQJBtkcpW%
>> > > >
>2FEy2yR2j7DkKR0ZoJnx5Yqqh3EOjpzlCgVDrLBwQeLm6NHwHGz8bmd10hbTnlPFI
>> > > >
>V8ZDhbyjZb6DPsCHnAR1vzapD69EgSqaMXejliFlin1Y3T4sIakSSzY1uUk2MWgCa
>> > > >
>AlpNmTB3hyUwBxGD9zRT1zK6aptOVP%2BiL8KF1H%2BOJtrKhlLzNW3MlrUK8rqsw
>> > > >
>FTs0kDgHAAwbb9mSplLxAc%2FqYfq4gYnFXvUYaxyWHH5AfpEHtz2rpuUqlV9pEB%
>> > > >
>2FWldXRFYWESiRcJOlKcAE%2BRvr%2Fp2BPWGKeW9zZ9FOVBdJG4ac8z%2FObVt%2
>> > > >
>FiuN288V14vGoquwdssb2uMG9HseCc%2B%2F2C%2F%2BjIkFxWi%2Fb6zVWMKDlrI
>> > > >
>y1Qi9KHazohI289UGfawVwnRSv8rdIZ7zCNeaDmh%2Bx5B0nXG3D19KdQ6EwYcIHB
>> > > >
>K3imvmtBo%2BuGkEOJwK8FVEE%2BX%2FOlFnIRsrkh4DtUXpOO%2B0og5X54vr%2B
>> > > > HGL9LicmiHFgSMeL1j%2ByOaISEvwqCTWpIoLJl1IHLr3vk
>> > > >
>p8AbSC4MiuXsyVw4Dw9cMta9GgT8FvnxnOApijLqMiGE7wFxjLAJOzkiM6qDw%3D%
>> > > > 3D
>> > > > >
>> > > > >This path works find on my browser, but I cannot get it to
>work
>> > > > on test
>> > > > >client
>> > > >
>> > > > 1) if you're literally using the test client, he doesn't expect
>> > > > such a long path and needs adapting
>> > > >
>> > > > char path[300];
>> > > >
>> > > >
>https://github.com/warmcat/libwebsockets/blob/master/test-server/
>> > > > test-client.c#L411
>> > > >
>> > > > 2) If it's still truncated, you can tune the max header content
>> > > > size limit at context creation time
>> > > >
>> > > > short max_http_header_data;
>> > > >         /**< CONTEXT: The max amount of header payload that can
>> > > > be handled
>> > > >          * in an http request (unrecognized header payload is
>> > > > dropped) */
>> > > >
>> > > > in v2.1 this became 4K, but previously it was 1K.
>> > > >
>> > > > 3) In this case the request packet is composed into the service
>> > > > thread's pt buffer, so that also must be larger than the entire
>> > > > header (default 4096), and can also be tuned at context
>creation
>> > > > time
>> > > >
>> > > > unsigned int pt_serv_buf_size;
>> > > >         /**< CONTEXT: 0 = default of 4096.  This buffer is used
>> > > > by
>> > > >          * various service related features including file
>> > > > serving, it
>> > > >          * defines the max chunk of file that can be sent at
>> > > > once.
>> > > >          * At the risk of lws having to buffer failed large
>> > > > sends, it
>> > > >          * can be increased to, eg, 128KiB to improve
>throughput.
>> > > > */
>> > > >
>> > > > -Andy
>> > > >
>> > > > >
>> > > > >--------------------------------------------------------------
>> > > > ----------
>> > > > >
>> > > > >_______________________________________________
>> > > > >Libwebsockets mailing list
>> > > > >Libwebsockets at ml.libwebsockets.org
>> > > > >http://libwebsockets.org/mailman/listinfo/libwebsockets
>> > > >
>> > > >
>> > >
>> > > _______________________________________________
>> > > Libwebsockets mailing list
>> > > Libwebsockets at ml.libwebsockets.org
>> > > http://libwebsockets.org/mailman/listinfo/libwebsockets
>> > >
>> >
>> > _______________________________________________
>> > Libwebsockets mailing list
>> > Libwebsockets at ml.libwebsockets.org
>> > http://libwebsockets.org/mailman/listinfo/libwebsockets
>>




More information about the Libwebsockets mailing list