wxpython ui を使用して http で制御しているチェリーピー アプリがあります。UIが閉じたときにサーバーを強制終了したいのですが、その方法がわかりません。現在、ウィンドウを閉じるイベントで sys.exit() を実行していますが、その結果
Traceback (most recent call last):
File "ui.py", line 67, in exitevent
urllib.urlopen("http://"+server+"/?sigkill=1")
File "c:\python26\lib\urllib.py", line 87, in urlopen
return opener.open(url)
File "c:\python26\lib\urllib.py", line 206, in open
return getattr(self, name)(url)
File "c:\python26\lib\urllib.py", line 354, in open_http
'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)
それは私がcherrypyを適切に止めていないからですか?