fixed fifo at client side

This commit is contained in:
wangyu-
2018-08-29 12:29:41 -05:00
parent 4e9000c6b5
commit a3535364fa
2 changed files with 26 additions and 1 deletions

View File

@@ -2528,7 +2528,7 @@ int client_bind_to_a_new_port2(int &fd,const address_t& address)//find a free po
for(int i=0;i<1000;i++)//try 1000 times at max,this should be enough
{
tmp.set_port(raw_send_port);
printf("<%s>\n",tmp.get_str());
//printf("<%s>\n",tmp.get_str());
if (try_to_list_and_bind2(fd,tmp)==0)
{
return raw_send_port;