Add possibility to scale middleproxy buffers

This commit is contained in:
9seconds
2020-03-30 16:53:14 +03:00
parent 35f0fca3c5
commit b5a8d8b804
5 changed files with 52 additions and 9 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (b *baseTelegram) dial(dc conntypes.DC,
continue
}
if err := utils.InitTCP(conn); err != nil {
if err := utils.InitTCP(conn, config.C.ProxyReadBuffer(), config.C.ProxyWriteBuffer()); err != nil {
b.logger.Infow("Cannot initialize TCP socket", "address", addr, "error", err)
continue
}