[Dev] [Cynara] Async client API v3.0 proposal

José Bollo jose.bollo at open.eurogiciel.org
Mon Sep 1 07:30:33 GMT 2014


Hello Lukasz, Hello everybody,

First: Bravo! It is a pleasure to read your synthesis.

Second, two remarks about what you wrote are: 

On sab, 2014-08-30 at 22:12 +0200, Lukasz Wojciechowski wrote:
(snip)

>* Jose proposes to add CYNARA_STATUS enum

Not sure about what you mean. Is it related to:

After checking the poll (and epoll) functions, it appears that the
hangup can't be ignored (precisely POLLERR, POLLHUP, or POLLNVAL are
detected and returned by poll in any cases). So this value of the enum
isn't required! Sorry for the trouble.

> * Patrick propose to pass errors to callbacks, not to 
> cynara_async_check() (which could return void)
> - [Jacek thinks it is useful to get some result not void]
> - [Jose thinks that there are errors that should not be ignored, e.g NOMEM]

The errors that can't be ignored can be handled in the callback if the
option of calling it directly is kept.

Best regards
José (that is about to comment your next mail ;)



More information about the Dev mailing list