EOF while 1 bytes expected
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- networking
调研方向
The stack trace runs from RtmpClient.handleMessages through CommandsManager.readMessageResponse and BasicHeader.parseBasicHeader down to TcpStreamSocket.read, where the channel closes mid-read. Start with the RTMP read loop in RtmpClient.kt around line 341 to see when the socket is expected to close. The issue gives no reproduction or expected behaviour, so a fix needs a maintainer decision on whether this EOF is an error or a normal disconnect.
由索引模型根据 Issue 内容生成。
描述
@pedroSG94 hi i get this exception as below ,how to fix this
kotlinx.coroutines.channels.ClosedReceiveChannelException: EOF while 1 bytes expected
at io.ktor.utils.io.ByteBufferChannel.readByte(ByteBufferChannel.kt:2507)
at com.pedro.common.socket.TcpStreamSocket.read(TcpStreamSocket.kt:79)
at com.pedro.rtmp.utils.socket.TcpSocket.read(TcpSocket.kt:75)
at com.pedro.rtmp.rtmp.message.BasicHeader$Companion.parseBasicHeader(BasicHeader.kt:63)
at com.pedro.rtmp.rtmp.message.RtmpHeader$Companion.readHeader(RtmpHeader.kt:45)
at com.pedro.rtmp.rtmp.message.RtmpHeader$Companion.readHeader$default(RtmpHeader.kt:42)
at com.pedro.rtmp.rtmp.message.RtmpMessage$Companion.getRtmpMessage(RtmpMessage.kt:51)
at com.pedro.rtmp.rtmp.CommandsManager.readMessageResponse(CommandsManager.kt:128)
at com.pedro.rtmp.rtmp.RtmpClient.handleMessages(RtmpClient.kt:341)
at com.pedro.rtmp.rtmp.RtmpClient.access$handleMessages(RtmpClient.kt:59)
at com.pedro.rtmp.rtmp.RtmpClient$connect$1.invokeSuspend(RtmpClient.kt:269)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
- 主要语言
- Kotlin
- 星标
- 3k
- 派生
- 946
- 平均合并
- 4 天 6 小时
- 30 天内合并 PR
- 9
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pedroSG94/RootEncoder 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
pedroSG94/RootEncoder#2213 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
pedroSG94/RootEncoder#2207 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
pedroSG94/RootEncoder#2203 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
pedroSG94/RootEncoder#2192 · 2 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
pedroSG94/RootEncoder#2177 · 44 条评论 ·
维护者通常 2 天内回复
查看 pedroSG94/RootEncoder 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 72/100
callstack/react-native-brownfield#492 · 1 条评论 ·
维护者通常 4 天内回复
-
fix: retain the best partial noise-correction solution可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
world-federation-of-advertisers/cross-media-measurement#4653 ·
维护者通常 1 天内回复
-
enhancement help wanted
难度 2/5 1-3 小时 新手友好度 70/100
kabirvashisht4-glitch/Vet#22 ·
-
documentation good first issue
难度 1/5 1-3 小时 新手友好度 85/100
djazairdev/wilayas#23 ·
维护者通常 1 天内回复