Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 107 by [email protected]: netbeans session not terminated on
Windows after socket closed
http://code.google.com/p/vim/issues/detail?id=107
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 20 2012 21:18:56)
Included patches: 1-502
Steps to reproduce:
* start the following netbeans.py server with python 3 (or adapt
netbeans.py
for python 2)
* start a vim instance and issue the command ':nbstart'
* after netbeans.py has terminated, the command
':echo has("netbeans_enabled")' still prints '1'
* one must run first ':nbclose' to start a new netbeans session on this
vim
instance
The problem does not happen on linux.
=== netbeans.py =======================================
import socket
# Start this script with python3, then run ":nbstart" in Vim.
HOST = ''
PORT = 3219
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,
s.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1)
s.bind((HOST, PORT))
s.listen(1)
conn, addr = s.accept()
print('Connected by', addr)
while 1:
data = conn.recv(1024)
# python2: msg = data
msg = data.decode()
print(msg)
if 'startupDone' in msg:
break
print('Closing.')
conn.close()
===========================================================
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.