Added support for specifying how a socket should be shutdown.
Added support for specifying how a socket should be shutdown.

Review: https://reviews.apache.org/r/54113

neilconway/mesos,abudnik/mesos,andschwa/mesos,dforsyth/mesos,gsantovena/mesos,yuquanshan/customizedMesos,chhsia0/mesos,chhsia0/mesos,jpeach/mesos,zmalik/mesos,dforsyth/mesos,kaysoky/mesos,abudnik/mesos,dforsyth/mesos,yuquanshan/customizedMesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,craimbert/mesos,jpeach/mesos,abudnik/mesos,chhsia0/mesos,andschwa/mesos,andschwa/mesos,asamerh4/mesos,zmalik/mesos,Gilbert88/mesos,chhsia0/mesos,craimbert/mesos,jpeach/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,Gilbert88/mesos,craimbert/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,kaysoky/mesos,andschwa/mesos,reneploetz/mesos,andschwa/mesos,verizonlabs/mesos,dforsyth/mesos,neilconway/mesos,reneploetz/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,asamerh4/mesos,Gilbert88/mesos,craimbert/mesos,Gilbert88/mesos,chhsia0/mesos,gsantovena/mesos,abudnik/mesos,reneploetz/mesos,gsantovena/mesos,jpeach/mesos,andschwa/mesos,Gilbert88/mesos,kaysoky/mesos,neilconway/mesos,zmalik/mesos,verizonlabs/mesos,yuquanshan/customizedMesos,neilconway/mesos,andschwa/mesos,kaysoky/mesos,kaysoky/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,abudnik/mesos,gsantovena/mesos,reneploetz/mesos,dforsyth/mesos,jpeach/mesos,reneploetz/mesos,asamerh4/mesos,verizonlabs/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,zmalik/mesos,dforsyth/mesos,yuquanshan/customizedMesos,neilconway/mesos,reneploetz/mesos,gsantovena/mesos,jpeach/mesos,verizonlabs/mesos,zmalik/mesos,craimbert/mesos,craimbert/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,chhsia0/mesos,chhsia0/mesos,asamerh4/mesos,gsantovena/mesos,kaysoky/mesos,verizonlabs/mesos,abudnik/mesos,jpeach/mesos,verizonlabs/mesos,asamerh4/mesos,zmalik/mesos,gsantovena/mesos,zmalik/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos