Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加入websocket代理后crash #876

Open
yoyo837 opened this issue Aug 13, 2019 · 1 comment
Open

加入websocket代理后crash #876

yoyo837 opened this issue Aug 13, 2019 · 1 comment

Comments

@yoyo837
Copy link

yoyo837 commented Aug 13, 2019

Environment(required) | 环境(必填)

  • roadhog version(roadhog版本) 2.5.0-beta.2
  • Nodejs and Npm version(Nodejs 和 Npm 版本)v10.16.2, v6.9.0
  • Operating environment (e.g. OS name) and its version(操作系统版本): MacOS Mojave

What did you do? Please provide steps to re-produce your problem.(请提供复现步骤)

  // 注释掉ws代理就没事
  proxy: {
    '/websocket/socketServer.do': {
      target: 'http://localhost:8080/',
      changeOrigin: true,
      ws: true,
    },
    '/v3': {
      target: 'http://localhost:8080/',
      changeOrigin: true,
    },
  },

What do you expected?(预期的正常效果)

正常代理websocket

What happen?(发生了何种非正常现象)

dev server crash

Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:111:27)

Re-producible online demo (可复现的在线demo)

@yoyo837
Copy link
Author

yoyo837 commented Aug 13, 2019

前提:如果websoket接口404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant