Quellcode durchsuchen

*** empty log message ***

Chris McDonough vor 18 Jahren
Ursprung
Commit
af21b67ae9
1 geänderte Dateien mit 25 neuen und 1 gelöschten Zeilen
  1. 25 1
      TODO.txt

+ 25 - 1
TODO.txt

@@ -1,6 +1,30 @@
 - Generalize eventlistener request/response protocol (wrap OK/FAIL in
   RESULT envelope) so we can use it for more specialized
-  communications.
+  communications, e.g.:
+
+  The listener would return 'RESULT %s\n%s' (len(result), result).
+  For event listeners, the "result" would be one of "OK" or "FAIL".
+  For a monitor process, it would be some serialization of the monitor
+  data (or maybe a failure token).
+
+  So an event listener conversation which transitions from
+  ACKNOWLEDGED to READY to BUSY back to ACKNOWLEDGED and to READY
+  again might go something like this:
+
+  -> READY\n
+  <- SUPERVISOR3.0 PROCESS_COMMUNICATION_STDOUT 30 22\n
+  <- process_name: foo\ngroup_name: bar\nThis is the data that was sent between the tags
+  -> RESULT 2\nOK
+  -> READY\n
+
+  An equivalent monitor process conversation might look like:
+
+  -> READY\n
+  <- SUPERVISOR3.0 MONITOR_QUERY 30 20\n
+  <- pids: 2601 2602 2603
+  -> RESULT 10672\n<... big mess o' XML maybe ...>
+  -> READY\n
+
 
 - Make it possible to listen on a domain socket *and* an HTTP socket.