LTE and 5G Network Connection Failure: POSIXErrorCode(rawValue: 50): Network is down #1457
-
Describe the bugHello, First, thank you for providing an excellent library. I am currently implementing RTMP streaming using HaishinKit.swift. The implementation works perfectly in a WiFi environment. However, when switching to LTE and 5G environments, the connection fails with the following error log: ====================================
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
The error is coming from the Network.framework that I'm using internally. Honestly, I don't have much knowledge about it. Regarding the error related to Network.framework, I believe you can find tutorials by looking it up. For instance, do you experience the same issue with external sites like YouTube or Facebook? |
Beta Was this translation helpful? Give feedback.
-
Hello, Thank you for your response. As you suggested, I checked whether the same issue occurs with external sites like YouTube and Facebook. The streaming works correctly on these external sites. Additionally, I built and tested the streaming using HaishinKit version 1.2.2 on LTE and 5G networks, and it worked successfully. Therefore, it seems that the issue only occurs with the latest version (1.8.1). Based on this information, could you please provide further assistance? If there are any specific settings or solutions to this issue, I would appreciate your guidance. Thank you. |
Beta Was this translation helpful? Give feedback.
-
In that version, NSInputStream/NSOutputStream is used, and it may be possible to connect. On the other hand, there is a higher tendency to crash and it takes longer to reconnect when switching networks. Although it was removed in version 1.8.0, in the 1.7.x series, it is possible to fall back to NSInputStream/NSOutputStream by setting It is highly likely that the compatibility between Network.framework and the network infrastructure being used is causing the issue, so I recommend experimenting with the options provided by Network.framework. |
Beta Was this translation helpful? Give feedback.
-
It seems like it might be a configuration issue with Network.framework, so I plan to move this to the Discussion section to gather insights. |
Beta Was this translation helpful? Give feedback.
Thank you, your help resolved the issue.
RTMPConnection.requireNetworkFramework = false.