<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yep, that looks correct. Nice find.<div class=""><br class=""></div><div class="">Regards, Mark.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 22 Aug, 2015, at 1:27 am, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Mark,<br class="">
    <br class="">
    on line 485 sub io_terminate deletes all app_conns of the vehicleid:<br class="">
          delete $app_conns{$vehicleid};<br class="">
    <br class="">
    I changed that to delete only the $fn entry:<br class="">
          delete $app_conns{$vehicleid}{$fn};<br class="">
    <br class="">
    ...which seems to fix the bug, my local test server no longer closes
    all app connections as soon as one terminates.<br class="">
    <br class="">
    Do I miss something?<br class="">
    <br class="">
    Regards,<br class="">
    Michael<br class="">
    <br class="">
    <br class="">
    <div class="moz-cite-prefix">Am 21.08.2015 um 18:01 schrieb Michael
      Balzer:<br class="">
    </div>
    <blockquote cite="mid:55D74B47.3050005@expeedo.de" type="cite" class="">
      <pre wrap="" class="">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" class="">
        <pre wrap="" class="">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="" class=""></pre>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
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 class="">
    <pre class="moz-signature" cols="72">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </div>

<span id="cid:DD4E53F1-B772-4EED-811C-98E7FFB9B80B"><dexter.vcf></span>_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>