[libmicrohttpd] Question about threads pool and TLS

2020-07-12 Thread Iron Bug at gmail.com
(like pthread_key_create) for local thread storage, but how can I determine when the thread is created and joined? Is there any events or callbacks at every worker thread's start and end where I could hook on to open and close my DB connections? Thanks in advance. Yana A. Kireyonok aka Iron Bug --

[libmicrohttpd] Problem with HTTP/1.1 chunked packets when connection is about to close

2021-04-25 Thread Iron Bug at gmail.com
Greetings. I use libmicrohttpd in my project and I found one bug in a very specific situation with chunked messages. The scheme I use is keep-alive connection for transferring some files (chunked content, HTTP/1.1 pipelining). When transfer is over, connection is closed by client request. I c

Re: [libmicrohttpd] Problem with HTTP/1.1 chunked packets when connection is about to close

2021-04-27 Thread Iron Bug at gmail.com
libmicrohttpd-ow...@gnu.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of libmicrohttpd digest..." > > > Today's Topics: > >1. Problem with HTTP/1.1 chunked packets when connection is > about

Re: [libmicrohttpd] Problem with HTTP/1.1 chunked packets when connection is about to close

2021-04-27 Thread Iron Bug at gmail.com
> For large files you should use > MHD_create_response_from_fd_at_offset64(). > > That will do the right thing. > Alas, in my case the 'files' are not something like FS files or system objects exactly, they're blobs in DB, really. And I read chunks from DB blobs (this is possible for postgre