<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Mark,<br>
<br>
on line 485 sub io_terminate deletes all app_conns of the vehicleid:<br>
delete $app_conns{$vehicleid};<br>
<br>
I changed that to delete only the $fn entry:<br>
delete $app_conns{$vehicleid}{$fn};<br>
<br>
...which seems to fix the bug, my local test server no longer closes
all app connections as soon as one terminates.<br>
<br>
Do I miss something?<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 21.08.2015 um 18:01 schrieb Michael
Balzer:<br>
</div>
<blockquote cite="mid:55D74B47.3050005@expeedo.de" type="cite">
<pre wrap="">Uh... just after sending, I remembered my new Edimax plug script running
as a cron job.
And indeed: the app loses the connection each time the status.pl script
checks the SOC (currently once per minute).
It's not related to the router / NAT, as my phone loses the connection
right at the same time.
Seems to be some bug in the server code regarding multiple client
connections to the same vehicle id... I'll have a look.
Regards,
Michael
Am 21.08.2015 um 17:48 schrieb Michael Balzer:
</pre>
<blockquote type="cite">
<pre wrap="">Mark,
I've had lots of broken pipes on the car side yesterday and I've got the
same for the app side today.
Do you know of any change on the server side that could cause this?
Regards,
Michael
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>