最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google cloud platform - GCP closes websocket feed but continues sending REST requests - Stack Overflow

programmeradmin2浏览0评论

I'm connecting to a Google Compute VM, creating a tmux session, running a Python script, and detaching from the session. The script connects to an exchange's websocket feed and sends POST requests to the exchange.

After detaching from the tmux session and closing my local shell to terminate the SSH connection, the script runs correctly for a few hours (I can confirm by manually checking the exchange on my local). However, after 2-4 hours, the websocket feed disconnects, but the POST requests continue to be sent.

Initially, I checked the logs and saw the error invalid ssh key entry - expired key, so adding a --ssh-key-expire-after flag seemed to resolve this issue. Now, instead, I'm seeing the error Error watching metadata: context canceled. What does this mean, and how can I go about fixing it?

发布评论

评论列表(0)

  1. 暂无评论