Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using sockets #110

Open
Shishani58 opened this issue Oct 12, 2021 · 1 comment
Open

Crash when using sockets #110

Shishani58 opened this issue Oct 12, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Shishani58
Copy link

Shishani58 commented Oct 12, 2021

I have socket manager:

    init?(
        url: URL,
        headers: [String: String],
        parameters: [String: String]
    ) {
        super.init()

        self.urlSession = URLSession(configuration: .default,
                                     delegate: self,
                                     delegateQueue: operationQueue)

        guard let url = URLComponents(url: url, parameters: parameters)?.url else {
            return
        }

        var request = URLRequest(url: url)
        request.timeoutInterval = 30
        headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key)}
        webSocketTask = urlSession?.webSocketTask(with: request)
    }

Application crashes with error Error: EXC_BAD_ACCESS (code=1, address=0x0) if Wormholy installed. If you remove the library, then there is no crash.

@pmusolino pmusolino added the help wanted Extra attention is needed label Nov 1, 2021
@pmusolino
Copy link
Owner

I released a new (big) version of Wormholy (1.6.5) with some improvements and fixes. https://github.com/pmusolino/Wormholy/releases/tag/1.6.5 Can you test it and let me know if you are still encountering this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants