byte0o

Results 9 comments of byte0o

If you want to add a read data size limit to the Body function, can you abandon the Body function and only support BodyStream? BodyStream can satisfy the caller's control...

@gab Yes, you can first mark the Body function as deprecated

@gaby If possible, provide Profiling ,Reference https://pkg.go.dev/cmd/go#hdr-Testing_flags

> 我遇到了同样的问题。恢复到1.55即可解决问题。 > > ```go > done ``` > > 此行表示任务已完成,导致上下文被取消 > > 使固定: > > ```go > done := ctx.s.done > > if done == nil { > done...

> > > > 我不确定我是否理解这里的问题,您可以发布一个可重现的例子吗? > > > > > > > > > client->ngnix->server,这个是概率性的,当并发请求数比较高的时候,一小部分客户端请求会很快(大概70ms)向Nginx发送RST标志。 > > > > > > 请提供可验证的最小代码集 > > 当收到请求时,启动 go 例程将请求发送到 ngnix > >...

@slicingmelon This problem is because the server closes the tcp connection 200 milliseconds after Accept. When the client writes the http protocol data, the tcp connection has been closed, which...

> Hello, > > I've managed to retrieve the nginx conf of the server where I was doing my tests, but it is hard to reproduce locally, as the testing...

> Hi [@byte0o](https://github.com/byte0o), > > I re-run the testcase above and captured the traffic using Wireshark. > > I noticed some TCP acked unseen segments: > > ![Image](https://github.com/user-attachments/assets/811af5fe-f682-48d7-962a-a3d21d1610c4) > >...

> > [@halpers](https://github.com/halpers), > > Correct, it returns ErrConnectionClosed on io.EOF. > > The issue can be closed I guess. > > The question is why it happens and how...