Improvements to mjsonrpc_bm_get_events

Issue #341 new
Stefan Ritt created an issue

While the basic functionality is now there to retrieve events from a web page, certain things are still missing and need to be implemented for the whole thing to be usable:

  • Ability to specify event ID and trigger mask to be sent
  • Option to receive the “last available” event or also “old” events from a buffer. We have to revisit GET_RECENT and confirm it’s working properly
  • Filter for certain banks to be displayed. This can be done on the Event Dump web page by SR
  • Fix issues at startup. To reproduce the problem, do:

    • start mhttpd
    • vie the Event Dump page in the browser, which says ‘Waiting for events…’
    • start mdump wihtout any parameter
    • start any frontend
    • the mdump program will immediately show the first event, while the web page is stuck in ‘Waiting for events…’, only a restart of mhttpd helps
  • (Maybe) implement ‘Get previous event’

Comments (2)

  1. dd1
    • filter on event_id and trigger_mask done
    • startup bug is fixed, commit 44ca3f340cd7f64294e0373ed1c54d8ee629dd81
    • event server currently implements “GET_NEW”, javascript has to wait until somebody writes a new event of requested type.

    To avoid the wait for a new event, mhttpd has to somehow have access to a recent event of requested type. this is difficult to implement using the existing event buffer API.

  2. dd1

    simple event server is implemented, rare events are now served equally to all consumers. down side is that the same event is always returned again and again until a new event is available. GET_RECENT is not implemented yet, need to fix GET_RECENT in midas buffer code first. K.O.

  3. Log in to comment