livekit / rust-sdks

LiveKit realtime and server SDKs for Rust
https://livekit.io
Apache License 2.0
185 stars 44 forks source link

internal error: "failed to send data packet Send" , when offen use rust-sdks to publishData #335

Open wangtianyang0 opened 4 months ago

wangtianyang0 commented 4 months ago

Dear developer, When I used the rust-sdks to build the lib liblivekit_ffi.so for the c-plusplus code,and use the lib to publishdata message to the livekit-server.And when I send the message more offen,such as no sleep in the loop , when the async_id reached over 170000 or more ,there will be a engine: internal error occured ,and the error is "failed to send data packet Send". The connect to the server is OK, and the client can`t publishData to the livekit-Server again any more. Is there any size limited to publishData to the livekit-server at a single time,or if there is something wrong with my rust-sdks, could you give me some advice?

The rust-sdks version is [ffi-v0.4.1] The livekit-server version is latest. Sincerely, Your rust-sdks user. Best wishes to you.

theomonnom commented 4 months ago

Hey, are you correctly waiting for the PublishDataCallback?

wangtianyang0 commented 4 months ago

Yes, I do the waiting correctly,and just when the async_id reached over 170000 or more ,there will be a engine: internal error occured ,and the error is "failed to send data packet Send".