Skip to content

Minor tweaks to OpenOS/etc/rc.d/minitel.lua to improve performance #39

Description

@Jajasek
  1. When a server is repeating a packet, the destination is cached in rcache and rcache[dest][1] is the same modem the packet arrived through, the packet should not be repeated. This could be solved by adding a condition in the function sendPacket (on line 119).
  2. The comment on line 37 suggests the time in rcache should be updated when a new packet from that computer is received, but it is not implemented. The function processPacket writes to rcache only if the computer is not cached. The condition on line 189 should be removed, the line
    rcache[sender] = {localModem,from,computer.uptime()+cfg.rctime}
    should be executed for all packets. Therefore when 2 computers periodically communicate, the servers between them never forgot the route. Also, it should be executed before the ack packet is sent. I therefore suggest to move it before the line 172.
  3. Cosmetic issue: the packets contain the vPort entry, but it is not documented in the comment on line 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions