Skip to content

irregular ping time? #232

@tesla1060

Description

@tesla1060

Hi,
I have run the following cmd,

ws connect --ping_interval 5 wss://real.okex.com:8443/ws/v3

but seems I am not getting pong back at around 5sec interval, the interval seems to be ranging from 7-10 sec.
But because I am running command on the same network as the websocket server, the pong should come back a few milliseconds after ping. May I know what is causing the delay, if ping is in fact sending at 5 sec interval

[2020-07-29 18:23:18.459] [info] Uri: /ws/v3
[2020-07-29 18:23:18.459] [info] Headers:
[2020-07-29 18:23:18.459] [info] Connection: upgrade
[2020-07-29 18:23:18.459] [info] Date: Wed, 29 Jul 2020 10:23:18 GMT
[2020-07-29 18:23:18.459] [info] sec-websocket-accept: /5H74Da1za0gSx4Q+z5lubqmkQ4=
[2020-07-29 18:23:18.459] [info] sec-websocket-extensions:
[2020-07-29 18:23:18.459] [info] Server: nginx
[2020-07-29 18:23:18.459] [info] upgrade: websocket
[2020-07-29 18:23:18.460] [info] Received pong
[2020-07-29 18:23:26.678] [info] Received pong
[2020-07-29 18:23:34.899] [info] Received pong
[2020-07-29 18:23:43.119] [info] Received pong
[2020-07-29 18:23:51.456] [info] Received pong
[2020-07-29 18:23:59.697] [info] Received pong
[2020-07-29 18:24:07.914] [info] Received pong
[2020-07-29 18:24:16.134] [info] Received pong
[2020-07-29 18:24:24.354] [info] Received pong
[2020-07-29 18:24:32.822] [info] Received pong
[2020-07-29 18:24:41.040] [info] Received pong
[2020-07-29 18:24:49.262] [info] Received pong
[2020-07-29 18:24:57.598] [info] Received pong
[2020-07-29 18:25:05.935] [info] Received pong
[2020-07-29 18:25:14.156] [info] Received pong
[2020-07-29 18:25:22.373] [info] Received pong
[2020-07-29 18:25:30.594] [info] Received pong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions