Fix issue #259 - Set socket identity now works with 4.0.x