alibaba / alibaba/anyproxy

代理后无法使用hmr热更新

Open
#376 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Plese fill the template when you reporting a new issue, thanks!

#### Which platform are you running AnyProxy

Linux

#### The version of the AnyProxy

4.0.10

#### Your expected behavior of AnyProxy

使用代理把部署服务器地址转为开发机器的vue开发环境地址,并支持webpack的热更新.

#### The actual behavior of AnyProxy

成功地进行了代理,但是不支持热更新.据我观察似乎是因为anyproxy一定要收到全部返回后一次性把结果返回给客户端.希望尽可能收到一点返回一点.

#### The log of the error

这是直接请求hmr文件时正确的响应,应该一直处于downloading状态,一直接收数据.
![image](https://user-images.githubusercontent.com/7006257/40044017-c3d1c708-5858-11e8-900f-b3779d2cb9ce.png)
![image](https://user-images.githubusercontent.com/7006257/40044082-ea17f5a4-5858-11e8-99c8-f16549dcc352.png)

这是代理之后的情况,在pending一段时间后失败.
![image](https://user-images.githubusercontent.com/7006257/40044179-337736ec-5859-11e8-8890-96f417a2e859.png)
![image](https://user-images.githubusercontent.com/7006257/40044204-49d124a2-5859-11e8-94c6-4b2e7ebcfa6d.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named in the issue. Reproduce the webpack HMR request directly and through AnyProxy, then inspect how the proxy handles the long-lived response; done means proxied HMR receives incremental data instead of remaining pending and failing.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.