Skip to content

EOF while 1 bytes expected #2002

@haohongxian77

Description

@haohongxian77

@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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions