coder / coder/websocket

Configurable buffer sizes

未关闭
#422 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Go
星标
5.5k
派生
372
PR 合并指标
30 天内没有已合并 PR

描述

Which is the suggested way to configure this library for high throughput connection, eg 10Mbit or more?

My understanding from navigating the code is that there is no way to configure the read/write buffer size. Do you think this could be a useful addition to the library?
Also increasing the read buffer size should probably be combined with increasing the client OS socket read buffer to prevent overload, which usually results to automatic closing of the connection.

Any feedback on this would be very useful for my use case. Also I am available to work on an enhancement to this library to support high throughput.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先跟踪库现有的读写缓冲区处理方式,以及它如何配置客户端操作系统的套接字缓冲区。在定义用于演示可配置缓冲区大小和以目标吞吐量成功建立连接的测试之前,先明确拟议的配置 API、预期的高吞吐量行为和过载处理。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
networking
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。