Saturday, January 20, 2024

ComSIPL fix

I just released COMSIPL 0.8.8 that squashes the really annoying subscription update bug for client presence. I was really making the check more complicated than need be. The fix was reducing this if statement check to this:
  if (strcmp(watcher_dn[loop], watcher_dn[numOfWatchers])==0 && 
      strcmp(watching_dn[loop],watching_dn[numOfWatchers])==0 &&   
      strcmp(watcher_ip[loop], watcher_ip[numOfWatchers])==0 ){

The logic finds the previous subscription(s), but does not step on the current subscription that was just written, then marking the matching row values:
  • watcher's DN
  • watching DN
  • watcher's client ID
  • watcher's tag
  • watcher's IP
    as "expired"

    There is still a lot to do with Presence and expanding the functionality to fit more clients. Also want to clean up the admin interface a lot more.
  • No comments:

    Post a Comment

    Ford Racing Makes History with First Overall Victory and Podium Sweep at 2026 Rebelle Rally

    Ford Racing Makes History with First Overall Victory and Podium Sweep at 2026 Rebelle Rally 4x4 Class Standings (Top Finishers) Rank ...