X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fport.cc;h=7dbba4e08e728f17aac89283f7e77d37a3968d50;hb=b341b2b8f8b566641704161f9cc9c28f2d77a358;hp=904a0addc5733d3ea4f8715057aa1befa8f0292a;hpb=23bbe3972dada1e21493437ba64be129e86b59fc;p=m6w6%2Flibmemcached diff --git a/libtest/port.cc b/libtest/port.cc index 904a0add..7dbba4e0 100644 --- a/libtest/port.cc +++ b/libtest/port.cc @@ -75,6 +75,7 @@ struct socket_st { { if ((*iter).second == _arg) { + shutdown((*iter).first, SHUT_RDWR); close((*iter).first); } } @@ -86,6 +87,7 @@ struct socket_st { iter != _pair.end(); iter++) { + shutdown((*iter).first, SHUT_RDWR); close((*iter).first); } }