LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 602|回复: 1

库函数中,无法得到socket描述符,“释放”“重用”的问题

[复制链接]
发表于 2009-4-23 00:00:05 | 显示全部楼层 |阅读模式
一个实际问题。
应用程序初始化调用库函数(第三方的库)。
库函数中,对某一端口XXXX进行socket绑定。
现在,某种特殊应用,应用程序重新初始化,这库函数绑定端口XXXX失败。
没有socket描述符。socket属性怎么设置?
另外,设置/proc/sys/net/inv4/tcp_tw_recycle ==1,问题能解决。
但是,这样所有的socket都被快速回收。不太合理。
现在怎么解决呢?  谢谢大家指定。。
发表于 2009-5-6 15:25:08 | 显示全部楼层
In English class, one girl said never give up when  discussing. It just reminded me something about myself.

Maybe it is something about love. My love, which began on July 3rd of 2005 and finished on August 23rd of 2008, taught me many things. It is not a pleasant thing to look back on that. But I know I must learn something from it, no matter what it is, happiness or sorrow.
Our love did not go on so smoothly and we went through many things. When we were confronting difficulties, he always told me “never give up”. I insisted that we would love
each other forever and that we would overcome all difficulties so long as we never give up. It was the reason that we can persist though we did not live in the same city.
This summer, he came to Qingdao campus. I was so glad because we could study together from then on. But all to my surprise, things changed so fast and out of my control.
wow gold
In these days, I am always trying my best to forget all the things of him. But it is not an easy thing. At last I know that when we promise something, we just believe we will
try our best to realize it, but if things change, we may do nothing about it.
wow gold
PS: Writing these words, I suddenly don’t know what to say next. Maybe we should believe the person who told you never give up. Here, I want to bless for the boy once told me never give up. Wish you have a happy life in your future.

NEVER GIVE UP
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表