haolei / tcpcopy

Automatically exported from code.google.com/p/tcpcopy
Other
1 stars 1 forks source link

packaging for Archlinux users #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
很酷的软件,谢谢。虽然我不懂你的代码,但是我已经打包��
� archlinux 
用户了,那里的社区很活跃,估计你能得到更好的反馈,建��
�和补丁。

http://aur.archlinux.org/packages.php?ID=52764

Original issue reported on code.google.com by tocer.deng@gmail.com on 29 Sep 2011 at 8:08

GoogleCodeExporter commented 9 years ago
thanks,我会努力把这个开源做好的

Original comment by 163.beij...@gmail.com on 30 Sep 2011 at 2:20

GoogleCodeExporter commented 9 years ago
file:select_server.c

52 void select_sever_del(int fd)
 53 {
 54     FD_CLR(fd,&read_set);
 55     max_fd = 0;
 56     int i = 0;
 57     for(i=0;i<fd_nums;i++)
 58     {
 59         if(valid_fds[i] == fd)
 60         {
 61             int j=i;
 62             while(j<fd_nums-1)
 63             {
 64                 valid_fds[j] = valid_fds[j+1];
 65                 if(valid_fds[j] > max_fd)
 66                 {
 67                     max_fd = valid_fds[j];
 68                 }
 69             }
 70             fd_nums--;
 71             break;
 72         }
 73         if(valid_fds[i] > max_fd)
 74         {
 75             max_fd = valid_fds[i];
 76         }
 77     }
 78 }

 62             while(j<fd_nums-1)
 63             {
 64                 valid_fds[j] = valid_fds[j+1];
 65                 if(valid_fds[j] > max_fd)
 66                 {
 67                     max_fd = valid_fds[j];
 68                 }
 69             }
这段代码存在bug.j没有自增,while循环不能正常结束.

Original comment by redfoxzh...@gmail.com on 10 Oct 2011 at 2:51

GoogleCodeExporter commented 9 years ago
archlinux 已更新

Original comment by tocer.deng@gmail.com on 12 Oct 2011 at 2:09

GoogleCodeExporter commented 9 years ago
多谢各位的支持,版本已经放到github上面去了

Original comment by 163.beij...@gmail.com on 31 Oct 2011 at 9:16

GoogleCodeExporter commented 9 years ago
我会同时更新到google code和github

Original comment by 163.beij...@gmail.com on 31 Oct 2011 at 9:16