servicecomb-kie
servicecomb-kie copied to clipboard
long polling API return error
测试watch接口 预期返回304
http://127.0.0.1:30110/v1/default/kie/kv?label=app:app11446&label=func:func784&wait=60s
实际返回
不加wait 返回正常
似乎超过wait参数超过60s就会这样?60s以下看着很正常
@tianxiaoliang @little-cui
will verify
you should check your testing tool settings about http timeout param, may be it is too short
This phenomenon still occurs when I use Google Chrome or curl commands. I’m not sure if it’s because I did a 2000-thread stress test on kie before. Now it’s been a day since the stress test. It seems that the phenomenon still exists. When debugging, the logic processing is normal. rctx.WriteHeader(http.StatusNotModified) is indeed executed, but the problem I described will appear when return. Today I will try to perform a stress test on Linux to observe this phenomenon