Closed chrisozenne closed 8 years ago
The issue is indeed in the deinit of the code, in particular in the call to redisFree, which closes the connection and frees the allocated memory.
I don't have a solution yet.
I now finally have solved this issue.
I removed our dependency on Hiredis and replaced it with a pure swift implementation of the REdis Serialization Protocol (RESP). This code is found in our develop branch. To use it you must:
1. Upgrade to the 05/03 drop of Swift
2. In your Package.swift file, update:
- The minor of Kitura to13.
- The minor of Kitura-redis to 13.
- If present, the minor of HeliumLogger to 7.
**Note:** You may have to update other dependencies as well, depending on what is in your Package.swift file
Please note that the migration of Kitura and it's associated packages is still work in progress. Not all of the packages have been migrated yet.
I'm getting the following error when connecting to redis from my Kitura project:
I get a response back from the request, however the server crashes after the request has been served. I think this has to do with the
deinit
of reds, but I am not sure how to debug.Here's the code: