Confirmed.
There had to be a connection at some point but it got destroyed within a second or so. There’s no extended delay between the session count increasing from 0-to-1 and the number of client counts (that remained at zero).
test output was from filename myapp2.py
but have since renamed to myapp.py
Here’s an attempt at the debugging console output. I pressed return a few times to space out startup output from the timed debug output:
comperem@ubuntu-s-1vcpu-512mb-10gb-nyc1-01:~/bokeh$
comperem@ubuntu-s-1vcpu-512mb-10gb-nyc1-01:~/bokeh$ bokeh serve --allow-websocket-origin='*' --log-level=debug myapp2.py
2023-07-21 15:30:23,584 Starting Bokeh server version 3.2.1 (running on Tornado 6.3.2)
2023-07-21 15:30:24,043 Host wildcard '*' will allow connections originating from multiple (or possibly all) hostnames or IPs. Use non-wildcard values to restrict access explicitly
2023-07-21 15:30:24,044 User authentication hooks NOT provided (default user enabled)
2023-07-21 15:30:24,045 These host origins can connect to the websocket: ['*']
2023-07-21 15:30:24,045 Patterns are:
2023-07-21 15:30:24,046 [('/favicon.ico',
2023-07-21 15:30:24,046 <class 'bokeh.server.views.ico_handler.IcoHandler'>,
2023-07-21 15:30:24,046 {'app': <bokeh.server.tornado.BokehTornado object at 0x7f1b01088880>}),
2023-07-21 15:30:24,046 ('/myapp2/?',
2023-07-21 15:30:24,047 <class 'bokeh.server.views.doc_handler.DocHandler'>,
2023-07-21 15:30:24,047 {'application_context': <bokeh.server.contexts.ApplicationContext object at 0x7f1b01088d30>,
2023-07-21 15:30:24,047 'bokeh_websocket_path': '/myapp2/ws'}),
2023-07-21 15:30:24,047 ('/myapp2/ws',
2023-07-21 15:30:24,047 <class 'bokeh.server.views.ws.WSHandler'>,
2023-07-21 15:30:24,047 {'application_context': <bokeh.server.contexts.ApplicationContext object at 0x7f1b01088d30>,
2023-07-21 15:30:24,047 'bokeh_websocket_path': '/myapp2/ws',
2023-07-21 15:30:24,047 'compression_level': None,
2023-07-21 15:30:24,047 'mem_level': None}),
2023-07-21 15:30:24,047 ('/myapp2/metadata',
2023-07-21 15:30:24,047 <class 'bokeh.server.views.metadata_handler.MetadataHandler'>,
2023-07-21 15:30:24,048 {'application_context': <bokeh.server.contexts.ApplicationContext object at 0x7f1b01088d30>,
2023-07-21 15:30:24,048 'bokeh_websocket_path': '/myapp2/ws'}),
2023-07-21 15:30:24,048 ('/myapp2/autoload.js',
2023-07-21 15:30:24,048 <class 'bokeh.server.views.autoload_js_handler.AutoloadJsHandler'>,
2023-07-21 15:30:24,048 {'application_context': <bokeh.server.contexts.ApplicationContext object at 0x7f1b01088d30>,
2023-07-21 15:30:24,048 'bokeh_websocket_path': '/myapp2/ws'}),
2023-07-21 15:30:24,048 ('/myapp2/static/(.*)',
2023-07-21 15:30:24,048 <class 'bokeh.server.views.static_handler.StaticHandler'>,
2023-07-21 15:30:24,048 {}),
2023-07-21 15:30:24,048 ('/?',
2023-07-21 15:30:24,048 <class 'bokeh.server.views.root_handler.RootHandler'>,
2023-07-21 15:30:24,049 {'applications': {'/myapp2': <bokeh.server.contexts.ApplicationContext object at 0x7f1b01088d30>},
2023-07-21 15:30:24,049 'index': None,
2023-07-21 15:30:24,049 'prefix': '',
2023-07-21 15:30:24,049 'use_redirect': True}),
2023-07-21 15:30:24,049 ('/static/extensions/(.*)',
2023-07-21 15:30:24,049 <class 'bokeh.server.views.multi_root_static_handler.MultiRootStaticHandler'>,
2023-07-21 15:30:24,049 {'root': {}}),
2023-07-21 15:30:24,049 ('/static/(.*)',
2023-07-21 15:30:24,049 <class 'bokeh.server.views.static_handler.StaticHandler'>)]
2023-07-21 15:30:24,055 Bokeh app running at: http://localhost:5006/myapp2
2023-07-21 15:30:24,056 Starting Bokeh server with process id: 13578
2023-07-21 15:30:39,059 [pid 13578] 0 clients connected
2023-07-21 15:30:39,059 [pid 13578] /myapp2 has 0 sessions with 0 unused
2023-07-21 15:30:54,070 [pid 13578] 0 clients connected
2023-07-21 15:30:54,070 [pid 13578] /myapp2 has 0 sessions with 0 unused
2023-07-21 15:31:09,065 [pid 13578] 0 clients connected
2023-07-21 15:31:09,065 [pid 13578] /myapp2 has 0 sessions with 0 unused
2023-07-21 15:31:24,066 [pid 13578] 0 clients connected
2023-07-21 15:31:24,066 [pid 13578] /myapp2 has 0 sessions with 0 unused
2023-07-21 15:31:39,058 [pid 13578] 0 clients connected
2023-07-21 15:31:39,058 [pid 13578] /myapp2 has 1 sessions with 1 unused
2023-07-21 15:31:49,068 Scheduling 1 sessions to discard
2023-07-21 15:31:49,068 Discarding session 'f5sPXcHno36hj76N8w8I7Ft8NVZwnjSj9g1hs53WY47N' last in use 22934.424352005124 milliseconds ago
2023-07-21 15:31:49,068 Deleting 1 modules for document <bokeh.document.document.Document object at 0x7f1afef40be0>
2023-07-21 15:31:54,061 [pid 13578] 0 clients connected
2023-07-21 15:31:54,061 [pid 13578] /myapp2 has 0 sessions with 0 unused
2023-07-21 15:32:09,060 [pid 13578] 0 clients connected
2023-07-21 15:32:09,060 [pid 13578] /myapp2 has 0 sessions with 0 unused
^C
Interrupted, shutting down
2023-07-21 15:32:15,743 Shutdown: cleaning up
comperem@ubuntu-s-1vcpu-512mb-10gb-nyc1-01:~/bokeh$
comperem@ubuntu-s-1vcpu-512mb-10gb-nyc1-01:~/bokeh$