Aofei Sheng

Results 93 comments of Aofei Sheng

Hey @quenbyako, any luck so far? I have a guess that this problem may be related to the request processing speed of the MTProto server. In fact, this problem rarely...

@quenbyako Good news, I fixed this bug by simply adding this `magicMu` to the [`MTProto.sendPacketNew`](https://github.com/xelaj/mtproto/blob/7e1bcaf5be62dff6dbe85ede2e13e62c543d5f74/network_io.go#L26) (this problem never happened again in my program). However, I don't know what happened (so...

@quenbyako Bad news, I still get this error in my tests. 😥

Perhaps we should ensure that [`MTProto.sendPacket`](https://github.com/xelaj/mtproto/blob/df86cba1ad26d714e1569b5be9486f4f32be14b4/network.go#L21) is always thread-safe, which means putting the entire [`MTProto.sendPacket`](https://github.com/xelaj/mtproto/blob/df86cba1ad26d714e1569b5be9486f4f32be14b4/network.go#L21) method behind a lock (not just [this](https://github.com/xelaj/mtproto/blob/df86cba1ad26d714e1569b5be9486f4f32be14b4/network.go#L52-L53)). And it's reasonable to do so, well, it's...

It seems that the `msg.seqNo` is set by [this line](https://github.com/xelaj/mtproto/blob/df86cba1ad26d714e1569b5be9486f4f32be14b4/network.go#L22), so we must ensure thread safety from this line until the entire request is sent.

They will be cached if you set the [goproxy.Goproxy.Cacher](https://pkg.go.dev/github.com/goproxy/goproxy#Goproxy.Cacher).

Which ones are not cached? Please provide some cases.

It should be noted that if you use an upstream proxy (defaulted to `https://proxy.golang.org`), only the file you requested, (`.info`, `.mod`, or `.zip`) will be cached, not three at a...

> Originally I had this as GOPRIVATE= but obviously if I do that it won't try to connect to the proxy I wrote using your module. ```go g.GoBinEnv = append(...

> running on a Mac On macOS or some container on it? If you can `dig host`, then your Goproxy program should also be able to lookup that host.