I just released 0.9.0 of PECL mogilefs. This is release comes with a few but small API breaks. Basically whenever there was no open connection, we returned false in the past. We no longer do that, instead we throw an exception of type MogileFsException. So the API breakage will be fairly visible. The complete list of changes:
setReadTimeout(float readTimeout) and getReadTimeout(). This can be used to set a differing read timeout to the connect timeout. In the past releases, the connect timeout (to the tracker) was used as a read timeout (to the storage nodes). From my experience the read timeout should be a little bit higher than the connect timeout.PHP_TEST_EXECUTABLE=<php> php tests.phpmogilefs_sock_read() and introduced maximum message size (based on a patch from Andre Pascha of kwick.de). Less allocs, less frees. Good stuffMogileFs::put() throws more exceptions: as said beforeComments, ideas, patches and anything else are more than welcome. Have fun with this release.
Filed under & no comments & no trackbacks
Trackback specific URI for this entry