i'm trying use ipy.vim script set small python dev environment, i'm running connection problem. when type ipy_vimserver.setup("demo") error:
exception in thread thread-1: traceback (most recent call last): file "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() file "/usr/lib/pymodules/python2.6/ipython/extensions/ipy_vimserver.py", line 109, in serve_me self.listen() file "/usr/lib/pymodules/python2.6/ipython/extensions/ipy_vimserver.py", line 93, in listen self.socket.bind(self.__sname) file "<string>", line 1, in bind error: [errno 98] address in use
when type second time, fine when launch gvim f4/f5 command nothing , state can't connect ipython server.
any suggestion?
problem:
look @ last line of stack trace: error: [errno 98] address in use
explanation:
a nice explanation of "address in use"
error can found here: "bind: address in use"
possible solution:
as have not tried ipy.vim
setup myself, networking point of view, quick suggestion to:
- close/kill both server (
ipython server
) , client (vim running ipy.vim
). - restart
ipython server
- run vim
ipy.vim
, try debug.
additional info:
- on linux/unix machines, timeout values defined in
/proc/sys/net/ipv4/tcp_keepalive_time
,/proc/sys/net/ipv4/tcp_fin_time
- on windows machines, set in
hklm\system\currentcontrolset\services\tcpip\parameters\tcptimedwaitdelay
. more details here: tcptimedwaitdelay
Comments
Post a Comment