johneh
johneh
I tried openssl with libmill a while back. I have uploaded it here: [`https://github.com/johneh/millssl`](https://github.com/johneh/millssl) You will need to patch libmill to include a small function or write your own versions...
Great!. I'll try to take another look at the code sometime next week. Many thanks for your efforts.
@sustrik, consider exposing the SSL object to allow use of the SSL_xx functions needed for ALPN support in openssl.
Are we talking about offloading regular file operations to worker threads? I spent some time experimenting with the idea (and thread-local poller loop with __thread etc.). AFAIR, used pipe for...
The start_routine uses the stack (created by pthread_create) of the new thread. Unless I am wrong about that, I don't see any issue.
I have uploaded my experiment here: [https://github.com/johneh/libmill_worker](https://github.com/johneh/libmill_worker) See the files worker.c and pipe.c; pipe.c code is an abstraction using regular pipe to create an inter-thread communication channel. Examples/tests are in...
@sustrik: That was the original intention.
It seems closing the write end of a pipe can be a difficult business. If the fd is closed in one thread then other writer threads waiting in poll/epoll will...