Fix Bug of mux_redux in ssh-rd
来源:互联网 发布:ubuntu 安装libxml2 编辑:程序博客网 时间:2024/06/05 10:23
The msftguy's ssh-rd(https://github.com/msftguy/ssh-rd) is a useful tool to make iOS ramdisk. It also contain a module usb-mux, it's independent and can be reuse. But there is a little bug in it.
mux.c. If the device connect failed, the 'local socket' will be blocked. More worst, if you dis-connect and re-connect again, the older 'socket' still blocked and new socket also can't startup(cause of listen(socket, 0)). If it shutdown the accepted socket when Device Connect Failed, the bug was gone.
This is my patch of it.
160c160< int new_sock;---> int new_sock = -1;257a258> if (new_sock > 0) closesocket(new_sock);264a266> if (new_sock > 0) closesocket(new_sock);
I had submit this patch to author. If he refused, hope this could help you.
- Fix Bug of mux_redux in ssh-rd
- Fix bug in the notepad tutorial of Android
- A bug of user switch funtion in Android5 and its fix in Android7
- fix bug
- fix bug
- fix bug of Arnold: missing either uvlist or uvidxs
- Fix one bug in Android 官方提供的例子
- Fix a Man-made Mistake in Java Project of Eclipse
- bug fix进行中
- lib3ds2.0 BUG fix
- android bug fix
- uLua bug fix
- CAS SSO bug fix
- the bug of the module in flex3
- Bug in tiled map extension of AndEngine
- bug in cobbler of fedora17 version
- ORA-600 [KFDAUDEALLOC2] AND INSTANCE CRASH EVEN WITH THE FIX OF BUG 14467061 (文档 ID 1903273.1)
- issue---bug fix---error LNK2011: precompiled object not linked in; image may not run
- 安卓中两种制作程序Splash的方法
- 可执行PHP文件的守护进程
- neo4j测试数据生成
- Spring 配置数据连接池
- Oracle表分区
- Fix Bug of mux_redux in ssh-rd
- 超简单--目录下的文件打包
- 动画翻转
- in_aton和in4_pton的内核编程用法
- jQuery.Cookie插件源码
- Graphics类与GDI
- 相控阵天线
- poj 1635 判断树是否同构
- jetty+nginx在ubuntu上的配置