I’ve released htbaapub.zmq 0.03, a wrapper for ZeroMQ. This release fixes data corruption when sending messages. The corruption was caused by BlitzMax collection String data a bit too soon. This was a tough one to find as garbage collectors are hard to predict.
As of now htbaapub.zmq also contains several unit tests to make sure everything works as expected. It doesn’t have full coverage, but I’ll improve this in the future. In case anyone is interested, the test module used is bah.maxunit.
You can install this version with maximus, download it or fetch the sources from GitHub.
This is just a short announcement on my Blog to let people know I’ve been busy wrapping ZeroMQ (or ZMQ) for BlitzMax. The result of this a new module called htbaapub.zmq. It’s available from the Maximus website, meaning you can install it using Maximus. If you rather fetch the Git repository that’s possible as well.
The module is still very much a Work In Progress. Most of ZMQ’s functions are available from BlitzMax and both Windows and Linux are supported. It should work fine on a Mac as well, but I’m unable to verify since I don’t actually own one.
A couple of examples are included as well. Have fun playing with ZMQ and if you encounter any bugs, please report them. I’ll then be able to look into fixing them.
I’ve released a new version of htbaapub.rest which contains a fix that normally makes libcurl generate an error.
When doing a HEAD request the server is supposed to return the same headers as when a GET request is being done. This also includes the Content-Length header. cURL however complains that the reported Content-Length couldn’t be read and generates a CURLE_PARTIAL_FILE (18) error.
Htbaapub.rest would simply throw an exception when cURL generated an error. Now this specific case is being ignored. So all HEAD requests which generate the CURLE_PARTIAL_FILE (18) error will succeed, as it’s supposed to.
This was fixed in version 1.05 but shortly after that I released 1.06 which includes the latest OpenSSL DLL’s (version 18.104.22.168).
I’ve updated htbaapub.rackspacecloudfiles to version 1.08 to support the undocumented changes to the Cloud Files API. This release depends on the version 1.04 of htbaapub.rest.
My REST module htbaapub.rest has been updated with a set of response code helper methods. Instead of doing a precise check on the status code (e.g. 202) you can now check if it’s inside the 2xx range. This release brings the IsInfo(), IsSuccess(), IsError(), IsRedirect(), IsClientError() and IsServerError() helper methods.