Skip to content

Socket listen failed on iOS 14.0.1 #194

@igorsquadra

Description

@igorsquadra

Hello everyone,
with update to iOS 14.0.1 (not tried on 14.0) I'm not able anymore to start Socket with listen method.
Here is my code:

var listenData = Data.init()
let message = try self.socket?.listen(forMessage: &listenData, on: self.destinationPort)
                
let hexString = listenData.hexadecimal
                
// If message is shorter than the default one (48 chars), ignore it
guard hexString.count >= 48 else {
    // Ignore message
    return
}
                
self.address = message?.address ?? nil
self.sourcePort = Socket.hostnameAndPort(from: self.address!)?.port

I'm not able to retrieve address and source port.
I'm able to let it work just re-run the app from Xcode otherwise it doesn't work.
It works perfectly on iOS 14.2
Someone noticed this problem?

Thank you in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions