xref https://github.com/mesos/mesos-go/pull/312/files#diff-38800baeef18ca9b9893830591d41c1eR3