In PROTON-818, Cliff has introduced some examples using the C reactor
interfaces.  For simple programs, they are pretty long.

  - reactor-recv.c - http://goo.gl/4QkqsE - 447 lines
  - reactor-send.c - http://goo.gl/Zcg9Sy - 389 lines

Some questions:

 - The examples carry connections in a context in order to do clean
shutdown.  Is that something the reactor should be capable of doing?

 - There's also a little extra logic in these to do clean object deletion.
Is there a better way to handle the references to avoid this?

 - There's some state management for timeouts.  Could that go into a
standard handler?  It seems like it will be a common case.

 - Can the endpoint setup in these examples go into a standard handler?

 - The message handling is verbose.  It seems attractive to have something
akin to the message.send and .recv that we have in Python.

Justin

Reply via email to