Archive for the ‘blatta’ Category

9980-9978 - presence, bug fixes

Friday, March 11th, 2022

Versions 9980 - 9978 include:


- Fix bug in which packet bounce count was being reset to 0


- Display only users who are online in nicklist


- Display timestamps for out of order direct messages in the appropriate dm buffer
- Display timestamp warning only once for a series of consecutive messages
- Adjust default intervals for checking and storing messages in the order buffer - 5 min. seems too long
- Don't resemd GETDATA requests for the same packet when multiple identical packets arrive as GETDATA responses.
- Fix bug in which requests for direct messages in storage would always fail







Blatta 9981 - Replay Notices

Wednesday, March 2nd, 2022

Version 9981 includes:

- send notices to channel instead of server buffer
- send replay notices prior to each getdata response that is earlier than the last displayed message

This change should resolve issues loggers and IRC clients have had parsing messages with timestamps prepended. Also results to commands that return listings such as %wot and %at will be displayed in the #pest channel instead of in the server buffer/console, which IMO is much more convenient.



Blatta 9982 has been putted

Thursday, February 24th, 2022

Version 9982 includes:

- support for GETDATA packets
- % sigil for commands
- support for db migrations
- updated short buffer algo to only list peers providing the lowest bounce count for a given hearsay message

This is a 90% rewrite of the previously released version, so there will likely be some bugs. There is a db migration, so back up your old database before running this version. Please note changes to the command line options.

Please note that it may take up to 5 minutes for you to receive the first message if you are joining the net with this version the first time, as that is the default order buffer expiration.



Blatta 9985: One thread only

Saturday, December 4th, 2021

Version 9985 includes:

- complete removal of threading
- don't listen for tcp connections after irc client connected
- removed --verbose and --debug options, now there is just --log-level, which accepts "debug" as an argument. default is info.
- irc server binds only to localhost
- info logs now have better info


I've left this version running for about 14 hours and encountered no exceptions or crashes.



Blatta 9986: Rebroadcast simple hearsay, embargo simple hearsay, more...

Wednesday, December 1st, 2021

Version 9986 includes:

- rebroadcast simple hearsay messages
- embargo simple hearsay messages
- more granular db write locking that should eliminate occasional slqite3.Programming error exceptions
- Pass broadcast message bytes straight through instead of recompiling them before rebroadcast
- Better handling of AT entries with empty addresses
- Fix erroneous references to 'logger' that should have been 'logging'



Blatta 9987: hearsay embargo

Monday, November 29th, 2021

Version 9987 includes:

- embargoing of in-wot messages
- hearsay message labeling
- removed IRC message formatting from pest message body
- some removal of dead/unnecessary irc related code
- limit of one irc client connection per station
- fix for crash when messages sent to unknown handle
- proper padding
- message bytes complied one time only
- a small number of unit tests


This version introduces threads in order to implement hearsay embargoing. This opens the possibility of a whole new world of bugs. The pest portion of Blatta has been refactored for ease of unit testing. I added unit tests to avoid recreating the actual network conditions that would produce the hearsay messages that need to be tested. I am considering adding unit tests for the message packing portion of the code. This could come in handy for others when building their own pestrons.



Blatta 9988: deduplication by message hash

Wednesday, November 17th, 2021

Version 9988 includes:

- Overhaul of deduplication algo: Previously timestamps were used to determine whether or not a message was unique. Now a hash of the message is being used. WARNING: Messages from stations that have not yet applied 9988 may not be detected as dupes by 9988 due to the switch from timestamps to hashes. There were multiple issues in previous versions causing messages with identical irc message payloads to appear to be different when hashed.

- Fix for overzealous rubbish message broadcasts.

Additionally, I have started publishing my station's debug log in an effort to aid Blatta testers.



Blatta 9989: presence for wot

Sunday, November 14th, 2021

Version 9989 includes:

- joins automatically sent for peers in WOT.
- join/part sent for peer/unpeer commands.
- AT timestamp now updated on receipt of rubbish packets
- --channel-name command line option for specifying what chan your Pest network expects everyone to be on.
- Don't include hostname in irc messages from clients.



Blatta 9990: rubbish messages

Saturday, November 13th, 2021

Blatta 9990 implements rubbish messages in order to attempt to keep ephemeral ports open.

Also included is a fix to prevent Blatta from crashing on bad input to the AT command and some refactoring wrt message handling that doesn't affect behavior.



Blatta 9991: Better logging and miscellaneous fixes

Thursday, November 11th, 2021

Improved logging with abbreviated message hashes associated with addresses should help track down missing messages.

Improved logging of various things that can go wrong with a message.

Fixes a crash caused by attempting to add a duplicate handle.

AT timestamps are now only set when a message has been received from a peer.

Removed some options that shouldn't be used. Renamed --ports to --irc-ports for clarity

Poll the socket only once per second instead of continuously

Renamed default database file to blatta.db