[Ovmsdev] Broken pipes

Mark Webb-Johnson mark at webb-johnson.net
Sun Aug 23 20:36:41 HKT 2015


Yep, that looks correct. Nice find.

Regards, Mark.

> On 22 Aug, 2015, at 1:27 am, Michael Balzer <dexter at expeedo.de> wrote:
> 
> Mark,
> 
> on line 485 sub io_terminate deletes all app_conns of the vehicleid:
>       delete $app_conns{$vehicleid};
> 
> I changed that to delete only the $fn entry:
>       delete $app_conns{$vehicleid}{$fn};
> 
> ...which seems to fix the bug, my local test server no longer closes all app connections as soon as one terminates.
> 
> Do I miss something?
> 
> Regards,
> Michael
> 
> 
> Am 21.08.2015 um 18:01 schrieb Michael Balzer:
>> 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:
>>> 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
>> 
>> 
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk <mailto:OvmsDev at lists.teslaclub.hk>
>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev <http://lists.teslaclub.hk/mailman/listinfo/ovmsdev>
> 
> -- 
> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
> <dexter.vcf>_______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.teslaclub.hk/pipermail/ovmsdev/attachments/20150823/9c41707e/attachment.html>


More information about the OvmsDev mailing list