Problem with network send
Posted: Sat Nov 03, 2012 12:11 pm
I'm currently developing a plugin for MediaPortal called EventGhostPlus when I send my events to the local Eventghost (with the -e option) on the HTPC there are no problems, but when I use the network sender (-n option) I sometimes get an error:
It's just sometimes, I've created a batch file that sends events in a loop and that way you can easily reproduce the problem (stop the batchfile with CTRL-C):
Code: Select all
Traceback (most recent call last):
File "EventGhost.pyw", line 51, in <module>
import eg
File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 28, in <module>
import Cli
File "C:\Program Files (x86)\EventGhost\eg\Cli.py", line 59, in <module>
Main(list(argvIter))
File "C:\Program Files (x86)\EventGhost\eg\Classes\NetworkSend.py", line 102, in Main
NetworkSend(host, int(port), password, eventstring, payloads)
File "C:\Program Files (x86)\EventGhost\eg\Classes\NetworkSend.py", line 56, in NetworkSend
cookie = sock.recv(128)
socket.timeout: timed outCode: Select all
:loop
EventGhost.exe -n server:1024 password test
goto loop