- 09 Nov, 2013 1 commit
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 29 Oct, 2013 2 commits
-
-
Rusty Russell authored
Both run-set_alloc and run-15-timeout used the same port, so they sometimes got stuck when running in parallel. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Apparently init --user adopts orphans. To quote the author Stewart Smith: As much as one can be happy in Ubuntu breaking something that has been true for what must be approaching 40 years, yep, I'm happy for you to make the changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 28 Oct, 2013 2 commits
-
-
Rusty Russell authored
Trivial, but they make coding easier and more predictable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
-
- 25 Oct, 2013 1 commit
-
-
Ahmed Samy authored
MSVC only supports inline assembly and does not support the keyword volatile for assembly. Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
- 23 Oct, 2013 1 commit
-
-
Ahmed Samy authored
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
- 21 Oct, 2013 4 commits
-
-
Ahmed Samy authored
This is a much more cleaner way to do it and _should_ be easier for people to use. Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
Ahmed Samy authored
Signed-off-by: Ahmed Samy <f.fallen45@gmail.com>
-
Rusty Russell authored
Useful for getsockname(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 16 Oct, 2013 1 commit
-
-
Rusty Russell authored
I really wanted an array of bytes in there, so make it more flexible. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 14 Oct, 2013 28 commits
-
-
Ahmed Samy authored
-
Rusty Russell authored
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Not a perfect solution (we'd ideally want to go to another plan immediately, but that would involve a malloc). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Don't call through io_loop, but have it pass the connection back and call manually. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Don't call from the plan-construction function, call after it returns. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Without this, closing an fd results in a spin... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Overloading io_close() as a callback is ugly: create an explicit io_close_cb(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Use a -1 for error codes. This makes it easier to write your own io funcs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Rather than insisting on supplying them on every call to io_new_conn(). Also, this way it can be changed on a connection. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
And rename debug_io_plan() to io_plan_debug() so it can be exposed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Debugging an async library is a pain: it's nice to force it into a linear call chain to try to track problems. Ugly code, though. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
In particular, make sure that idle connections don't get closed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Have it set the plan itself, rather than passing it back. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Pass fd and plan explicitly, so they don't need to know the definition of struct io_conn, and return a bool instead of an enum. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Use a NULL next pointer instead to indicate a closing connection. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Use a NULL io pointer instead to indicate an idle connection. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
It was only used for initial connections which hadn't started I/O. Now they are initialized with an io_plan, it can be eliminated. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Rather than going via a callback, which tends to just set up I/O, do any setup before the call to io_new_conn(), then pass it the io_plan directly. The patch shows how much this simplifies our test code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Instead of assuming they want a connection made from the new fd, hand the fd to a callback. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
No longer needed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
This simplifies some things: in particular, we can construct an io_plan without needing the current io_conn. On the other hand, we need to expose the structure now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
We only use it in one place: for wakeup. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Ready for exposure. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Explicit callbacks are slower, but more flexible. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Sure, both listener and conn need them, but for different things (listener uses them simply to set up conn). Putting them in the common union was a mistake. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-