[libmicrohttpd] How to avoid the "Internal application error, closing connection" message when AHC = NO?

2016-03-14 Thread silvioprog
Hello, Sometimes, an application needs to refuse the client connection, something like this: static int ahc_echo(void *cls, ...) { if (!logged()) return MHD_NO; } However, when I pass the MHD_NO to the AHC, I always get the "Internal application error, closing connection" in my log.

Re: [libmicrohttpd] How to avoid the "Internal application error, closing connection" message when AHC = NO?

2016-03-14 Thread silvioprog
Hm... I use MHD_OPTION_EXTERNAL_LOGGER, so I'll do something like: if (msg != 'Internal application error, closing connection.\n') logger.log(msg); I thought about it, but I didn't know that I could skip all messages of this type. Thank you! :-) On Mon, Mar 14, 2016 at 10:34 AM, Christian Gro

Re: [libmicrohttpd] How to avoid the "Internal application error, closing connection" message when AHC = NO?

2016-03-14 Thread silvioprog
On Mon, Mar 14, 2016 at 11:03 AM, Kenneth Mastro wrote: > I don't know anything about using external loggers with MHD and this isn't > really any of my business, but filtering log messages based on the string > seems like a bad idea. That string could change in future releases (plus I > guess yo

[libmicrohttpd] Demo "largepost.c" with a file about 6GB

2016-03-28 Thread silvioprog
Hello, I'm using the demo `largepost.c` to try to receive a file about 6 GB, but I always get the "ERR_CONNECTION_ABORTED" error in my Chrome, and MHD receives only ~4.1 GB. I tried the same test in Firefox, same problem, it send only ~4.1 GB. I noticed that the upload progress stays a long time

Re: [libmicrohttpd] Demo "largepost.c" with a file about 6GB

2016-03-29 Thread silvioprog
Hello Christian, thanks for reply. :-) So, I've tested it on Xubuntu 14.04 64 bits and it has worked fine, so it seems to be a problem related to MHD on Windows. I'm using Windows 7 Pro 64 bits, and MHD was compiled for 32 bits with MingWG-w64 32 bits. To compile the demo I just opened and compile

Re: [libmicrohttpd] Demo "largepost.c" with a file about 6GB

2016-03-30 Thread silvioprog
On Tue, Mar 29, 2016 at 3:32 PM, silvioprog wrote: [...] > I've noticed that the progress stay a long time (~1min) in 99% even on > Linux, but it receive the entire upload. > Does anyone else notice the same behavior? -- Silvio Clécio

Re: [libmicrohttpd] libmicrohttpd 0.9.49 released

2016-04-10 Thread silvioprog
Great news! \o/ I'm going to update my MHD translated headers for Delphi/Free Pascal. Thank you Grothoff, Evgeny and all for this great effort! :-) On Sat, Apr 9, 2016 at 11:39 AM, Christian Grothoff wrote: > Dear all, > > I'm happy to announce the release of libmicrohttpd 0.9.49. > > GNU libm

Re: [libmicrohttpd] libmicrohttpd 0.9.49 released

2016-04-12 Thread silvioprog
On Sat, Apr 9, 2016 at 11:39 AM, Christian Grothoff wrote: > Dear all, > > I'm happy to announce the release of libmicrohttpd 0.9.49. [...] Oh, I didn't see the Windows binaries available for this release, doing navigating at MHD site now I found the "libmicrohttpd-0.9.49-w32-bin.zip" entry. :-

Re: [libmicrohttpd] libmicrohttpd 0.9.49 released

2016-04-12 Thread silvioprog
It worked fine here on Windows. I don't know how C++ declares pointers, but looking at this line: struct MHD_Daemon *daemon = MHD_start_daemon( daemon_flags, 0, http_AcceptPolicyCallback, NULL, http_AccessHandlerCallback, NULL, ... You should use something like this: struct MHD_Daemon

[libmicrohttpd] MHD_ContentReaderCallback and Byte serving

2016-04-15 Thread silvioprog
Hello, I've used the MHD_create_response_from_callback() to serve big files, however, I need to send only a portion of some certain files. It can be easily done using the HTTP 1.1 Byte serving , that can be implemented following the RFC 7233

Re: [libmicrohttpd] MHD_ContentReaderCallback and Byte serving

2016-04-16 Thread silvioprog
Hello Christian. :-) Thanks for explanation, it sould be added to MHD manual. I'm going to try some tests and get back with news. To be continued ... :-D On Sat, Apr 16, 2016 at 6:08 AM, Christian Grothoff wrote: > Hi! > > What you do is you need to (1) manually add the header to tell the > b

[libmicrohttpd] Status 304 and insistent Content-Length header

2016-05-31 Thread silvioprog
Hello, In some cases, we need to remove the Content-Length header, for example, when the status code is 304 (not modified), you don't need to send some content-* headers again. See this code: https://github.com/expressjs/express/blob/master/lib/response.js#L192 Great, it makes sense, but unfortu

Re: [libmicrohttpd] Status 304 and insistent Content-Length header

2016-06-01 Thread silvioprog
responses? On Wed, Jun 1, 2016 at 2:20 AM, silvioprog wrote: > Hello, > > In some cases, we need to remove the Content-Length header, for example, > when the status code is 304 (not modified), you don't need to send some > content-* headers again. See this code: > > ht

Re: [libmicrohttpd] Status 304 and insistent Content-Length header

2016-06-01 Thread silvioprog
Awesome! Thank you for fast fixing. :-) (issue #4554 fixed. https://gnunet.org/bugs/view.php?id=4554) On Wed, Jun 1, 2016 at 5:03 PM, Christian Grothoff wrote: > You're right, my reading of the spec is that we SHOULD NOT transmit > content-length in these cases. Should be fixed in SVN 37227. >

Re: [libmicrohttpd] libmicrohttpd 0.9.50 released

2016-06-02 Thread silvioprog
Great news! Looking at MHD home page, it still offering the 0.9.49 version. For tar.gz files, we should change the home page to look the latest file at ~gnu/libmicrohttpd/ folder. For .zip files, we should make an automatic build at MHD server, generating the Windows binaries (from latest sent tar

Re: [libmicrohttpd] libmicrohttpd 0.9.50 released

2016-06-04 Thread silvioprog
Lol I haven't seen, thanks for remind me. I'm going to download it. So, what language was used to build MHD home page? I can send a code that prints the latest released packages on it. On Fri, Jun 3, 2016 at 7:59 AM, Evgeny Grin wrote: > W32 binaries are available on ftp server. > Now - with re

Re: [libmicrohttpd] libmicrohttpd 0.9.50 released

2016-06-04 Thread silvioprog
Awesome. Can we use something like jQuery on there? On Sat, Jun 4, 2016 at 8:52 AM, Christian Grothoff wrote: > On 06/04/2016 01:50 PM, silvioprog wrote: > > Lol I haven't seen, thanks for remind me. I'm going to download it. > > > > So, what language was used to

Re: [libmicrohttpd] libmicrohttpd 0.9.50 released

2016-06-04 Thread silvioprog
age > should work without JavaScript. -Christian > > On 06/04/2016 07:41 PM, silvioprog wrote: > > Awesome. Can we use something like jQuery on there? > -- Silvio Clécio

[libmicrohttpd] MHD in "worker processes" mode

2016-06-09 Thread silvioprog
Hello, Please take a look at this question and the first answer: http://askubuntu.com/questions/399431/how-many-nginx-processes-should-there-be It raise a question: can I use the worker processes approach with MHD? If I understood, it need to up two or more process, but when I try that: "Failed

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-10 Thread silvioprog
Hello Peter, I have a bat that makes MHD and you can choose between the smallest (just the HTTP server, no HTTPS, messages, auth etc.) and fullest version (full HTTP server, HTTPS, messages, auth etc.). I'm away from my development PC, but I'll send it for you ASAP ... On Fri, Jun 10, 2016 at 12

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-10 Thread silvioprog
\msys32\usr\local\bin\" and enjoy it! :-) 38. 39. :: If you want to rebuild MHD, do: 40. :: 41. :: $ make clean 42. :: $ CFLAGS='-Os -s' ./configure 43. :: $ make -j8 44. :: $ make install-strip On Fri, Jun 10, 2016 at 4:30 PM, silvioprog wrote: > Hello P

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-12 Thread silvioprog
Perfect! After many Evgeny corrections, the scripts was updated: 1. http://pastebin.com/gqA5LgFs; (just HTTP server) 2. http://pastebin.com/7J6MWfM0. (full HTTP(S) server) Thanks Evgeny! ^^ On Sat, Jun 11, 2016 at 7:03 AM, Evgeny Grin wrote: > On 11.06.2016 0:25, silvioprog wrote: >

Re: [libmicrohttpd] libmicrohttpd 0.9.50 released

2016-06-12 Thread silvioprog
created to each new release. :-) On Sat, Jun 11, 2016 at 9:56 PM, Christian Grothoff wrote: > Should be fixed now. No need for code, a symlink does the trick ;-). > -Christian > > On 06/04/2016 09:23 PM, silvioprog wrote: > > No JS, no some language at server... no idea how to

Re: [libmicrohttpd] MHD in "worker processes" mode

2016-06-12 Thread silvioprog
200, Christian Grothoff wrote: > >> On 06/10/2016 02:04 AM, silvioprog wrote: > >>> > >>> Hello, > >>> > >>> Please take a look at this question and the first answer: > >>> > >>> http://askubuntu.com/questions/399431/how-ma

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-15 Thread silvioprog
Is there any way to get the list of all required dlls to distribute with my application? On Wed, Jun 15, 2016 at 3:47 PM, Evgeny Grin wrote: [...] > You will need about 12-15 additional .dlls or .a files. That's the reason > why W32 binary is not distributed with TLS. > > -- > Best Wishes, > Ev

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-16 Thread silvioprog
Awesome. I found this link showing many tools, so I tried one of them: $ ldd build/src/microhttpd/.libs/libmicrohttpd-12.dll | grep mingw | awk '{ print $1 }' libgcrypt-20.dll libgnutls-30.dll libgpg-error-0.dll libwinpt

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-16 Thread silvioprog
Awesome. I'm going to update my script ... On Thu, Jun 16, 2016 at 7:42 AM, LRN wrote: > On 16.06.2016 13:35, Evgeny Grin wrote: > > On 15.06.2016 21:58, silvioprog wrote: > >> Is there any way to get the list of all required dlls to distribute with > >> my ap

Re: [libmicrohttpd] Windows binary with SSL3/TLS

2016-06-17 Thread silvioprog
On Windows, the MinGW pacman has an old MHD version: mingw-w64-i686-libmicrohttpd 0.9.42-2. But on Manjaro Linux (I have a copy just for tests) it has the latest version. @offtopic ON Can I upgrade my Windows MinGW repo to get the latest MHD version like pacman on Manjaro? @offtopic OFF. On Fri,

[libmicrohttpd] "FIXME"?

2016-07-08 Thread silvioprog
Hello masters. :-) I found some "FIXME" entries at MHD tutorial and I'm not sure if it was a typo. Look for "Setting the cookie header" at: https://www.gnu.org/software/libmicrohttpd/tutorial.html it has: "... Given this cookie value, we can then set the cookie header in our HTTP response as fo

Re: [libmicrohttpd] Query on using openssl with microhttpd

2016-08-05 Thread silvioprog
It would be a nice feature to be added in a wishlist. :-) On Fri, Aug 5, 2016 at 12:38 PM, Christian Grothoff wrote: > Not at this time. -Christian > > On 08/05/2016 04:49 PM, Geetha Shanmugam wrote: > > Hi, > > Is there a way we can use openssl library (instead of gnutls) with > > microhttpd? >

[libmicrohttpd] Creating instances in the option MHD_OPTION_URI_LOG_CALLBACK

2016-08-07 Thread silvioprog
Hello listers, I have a Pascal object representing the request so it is created for each browser request, and MHD maintains the life cycle of that one. So far so good, but the only problem is about my approach choice, I used the option MHD_OPTION_URI_LOG_CALLBACK to create the object and the MHD_O

[libmicrohttpd] [FEATURE REQUEST] Declares all log and errors messages in constants

2016-08-10 Thread silvioprog
Hello, Please take a look at issue #4614 . Thank you! -- Silvio Clécio

Re: [libmicrohttpd] Creating instances in the option MHD_OPTION_URI_LOG_CALLBACK

2016-08-10 Thread silvioprog
On Wed, Aug 10, 2016 at 6:45 AM, Christian Grothoff wrote: > On 08/08/2016 02:26 AM, silvioprog wrote: > > Anyway, I have some doubts. When I set a routine to the > > MHD_OPTION_URI_LOG_CALLBACK option, is this one always called once time > for > > each request? If

[libmicrohttpd] Question about the new `mhd_threads.h` header

2016-08-11 Thread silvioprog
Hello, I've looked at last commits and found a new header: mhd_threads.h. It has functions like MHD_create_thread(), MHD_create_named_thread() and MHD_join_thread(), however it seems only to MHD's internal using. BTW these functions could be also very useful for MHD consumers. WDYT? -- Silvio Cl

Re: [libmicrohttpd] Question about the new `mhd_threads.h` header

2016-08-11 Thread silvioprog
The same question to the `mhd_locks.h`. Useful cross platform thread/locks functions. On Thu, Aug 11, 2016 at 4:06 PM, silvioprog wrote: > Hello, > > I've looked at last commits and found a new header: mhd_threads.h. It has > functions like MHD_create_thread(), MHD_create_nam

Re: [libmicrohttpd] Question about the new `mhd_threads.h` header

2016-08-12 Thread silvioprog
On Thu, Aug 11, 2016 at 4:31 PM, Christian Grothoff wrote: > They do not relate to providing an HTTP server, and they thus should > remain an internal API. [...] +1 Fully agreed! :-) -- Silvio Clécio

[libmicrohttpd] Doubt regarding to MHD_UpgradeAction

2016-08-13 Thread silvioprog
Hello, I'm upgrading my Pascal header to the MHD version 0.9.50, however, I found the following comment in the MHD_UpgradeAction enum: Enumeration for actions MHD should perform on the underlying socket > of the upgrade. This API is not finalized, and in particular > the final set of actions is

Re: [libmicrohttpd] Doubt regarding to MHD_UpgradeAction

2016-08-13 Thread silvioprog
On Sat, Aug 13, 2016 at 1:44 PM, Christian Grothoff wrote: > You should not enable it, as it has not yet been implemented and is > likely to change before it is stable. -Christian Awesome, removed from my header! :-) Thank you! -- Silvio Clécio

[libmicrohttpd] MHD and HTTP2

2016-08-19 Thread silvioprog
Hello masters, Is there any plan to make MHD supporting HTTP2? Thank you! -- Silvio Clécio

Re: [libmicrohttpd] MHD and HTTP2

2016-08-23 Thread silvioprog
Hello Christian, Finally I took a look at nghttp2 C API , but HTTP2 is still very new for me, so I can't understand it. :-) In a not so distant future I'll try node-http2 just for performance checking. On Fri,

Re: [libmicrohttpd] libmicrohttpd 0.9.51 released

2016-08-27 Thread silvioprog
Great news! :-) On Sat, Aug 27, 2016 at 2:19 PM, Christian Grothoff wrote: > Dear all, > > > I'm happy to announce the release of libmicrohttpd 0.9.47. > Oops, 0.9.51. :-) > GNU libmicrohttpd is a small C library that is supposed to make it easy > to run an HTTP server as part of another appl

Re: [libmicrohttpd] Connection: Upgrade / WebSockets

2016-09-06 Thread silvioprog
Good news! \o/ Hello Christian, do you recommend some article/video about HTTP upgrade? I want to understand how it works too. Thank you! On Sun, Sep 4, 2016 at 1:14 PM, Christian Grothoff wrote: > Dear all, > > I've just completed adding support for "Connection: Upgrade" to > libmicrohttpd.

Re: [libmicrohttpd] Connection: Upgrade / WebSockets

2016-09-12 Thread silvioprog
I'm going to take a look at this. Thank you! :-) On Wed, Sep 7, 2016 at 4:55 AM, Christian Grothoff wrote: > I'd just stick to the respective section of RFC 2616: > > https://tools.ietf.org/html/rfc2616#section-14.42 -- Silvio Clécio

[libmicrohttpd] Was the Upgrade feature based in the obsolete rfc2616?

2016-09-15 Thread silvioprog
Hello, I'm not sure but it seems that rfc 2616 was deprecated by rfcs 723X. Could anyone confirm this? I opened some 723x, eg: 7230, 7231, 7232 etc., and they have the "Obsoletes: 2616" header. Thank you! -- Silvio Clécio

Re: [libmicrohttpd] Was the Upgrade feature based in the obsolete rfc2616?

2016-09-18 Thread silvioprog
the best of my > knowledge, be fully compatible with the 723x-RFCs as well. > > On 09/15/2016 06:06 PM, silvioprog wrote: > > Hello, > > > > I'm not sure but it seems that rfc 2616 was deprecated by > > rfcs 723X. Could anyone confirm this? > > > >

Re: [libmicrohttpd] Drop Symbian support?

2016-10-17 Thread silvioprog
+1 for dropping Symbian port. On Mon, Oct 17, 2016 at 9:06 PM, Flavio Ceolin wrote: > On Tue, Oct 18, 2016 at 01:27:10AM +0300, Evgeny Grin wrote: > > Dear libmicrohttpd users and developers, > > > > We would like to know, does somebody still needs MHD for Symbian? > > Symbian is abandoned years

[libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-01 Thread silvioprog
Hello, Please take a look at this quote: "*Least Connected* *With least connected load balancing, nginx won’t forward any traffic to a busy server. This method is useful when operations on the application servers take longer to complete. Using this method helps to avoid overload situations, beca

Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-01 Thread silvioprog
Complementing my question: this way creates a new thread only when really it is required, different from the threaded model, that creates unconditionally a new thread for each request. On Thu, Dec 1, 2016 at 5:13 PM, silvioprog wrote: > Hello, > > Please take a look at this quote: &g

Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-01 Thread silvioprog
On Thu, Dec 1, 2016 at 5:49 PM, Evgeny Grin wrote: > It's a basic of theory of mass telecommunication. > Developed with first automatic telephone exchange. > In overloaded situation - just reject some part of incoming traffic as > retries only prevent end of overload. > Exactly. :-) But instead

Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-01 Thread silvioprog
Oops, On Thu, Dec 1, 2016 at 6:39 PM, silvioprog wrote: [...] > . fastcgiapp1 rutting on port 9000; // primary > . fastcgiapp2 rutting on port 9001. // backup > "... running on port ..." Supposing this pseudo code: I meant "A pseudo mode:" -- Silvio Clécio

Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-02 Thread silvioprog
... } } MHD_start_daemon(*MHD_USE_SELECT_INTERNALLY* ... ^^' On Thu, Dec 1, 2016 at 6:42 PM, silvioprog wrote: > Oops, > > On Thu, Dec 1, 2016 at 6:39 PM, silvioprog wrote: > [...] > >> . fastcgiapp1 rutting on port 9000; // primary >> . fastcgiapp2 rutting on port 9001. // ba

Re: [libmicrohttpd] MHD threading models: what model is similar to Least Connected?

2016-12-05 Thread silvioprog
Master, I'm going to test it in C simulating my scenario (in Pascal), the idea using a list of daemons is really awesome. Thanks a lot for the full example, I probably will be back with some news! :-) On Fri, Dec 2, 2016 at 4:40 PM, Evgeny Grin wrote: > You will need something like: > > --

Re: [libmicrohttpd] MHD_RESPMEM_PERSISTENT

2017-01-24 Thread silvioprog
Could you show what error and how the buffer was assigned? On Tue, Jan 24, 2017 at 8:17 AM, Miguel Sancho wrote: > Hi, > using the *MHD_RESPMEM_PERSISTENT* option I am getting an error. The > following HTTP response gives a corrupt file when downloading from > libmicrohttpd.0.9.50. However same

Re: [libmicrohttpd] Bench-marking issue

2017-01-29 Thread silvioprog
#x27;t see if you compiled MHD (or the other servers) with any > special CFLAGS, i.e. O2/O3/Os or even O0/O1. So that might also make > some small difference. > > Happy benchmarking! > > Christian > > On 01/28/2017 09:05 PM, silvioprog wrote: > > Hello masters, > >

[libmicrohttpd] Please update demo flags

2017-01-29 Thread silvioprog
Hello masters, I noticed some flags was renamed on new MHD versions, so it would be nice to upgrade all examples (including commented sources) to using that new flags, for example (it seems all in red was renamed): #if 0 (void) MHD_add_response_header (response, MHD_HTTP_HEADER_CO

[libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-29 Thread silvioprog
Hello masters, I've noticed all flags for `USE` scope was prefixed with `MHD_USE_*`, except these two flags. So, it was a typo or is that OK? Anyway MHD_USE_SUPPRESS_DATE and MHD_USE_NO_FLAG makes more sense, following the same other FLAGs pattern. Thanks! -- Silvio Clécio

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-30 Thread silvioprog
cally, so we decided to not > rename these flags, also to minimize disruptions. > > On 01/29/2017 10:35 PM, silvioprog wrote: > > Hello masters, > > > > I've noticed all flags for `USE` scope was prefixed with `MHD_USE_*`, > > except these two flags

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-30 Thread silvioprog
Oops, On Mon, Jan 30, 2017 at 3:36 PM, silvioprog wrote: > ... it didn't compile it because ... > I meant: "... it didn't compile because ...". ^^' -- Silvio Clécio

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-30 Thread silvioprog
ppressED" instead of "suppress" and "end" instead of "no") On Mon, Jan 30, 2017 at 3:59 PM, Christian Grothoff wrote: > Hmm. This should not be the case, as we kept the old names around for > now to ensure backwards-compatibility. Which flag gave you trouble? >

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-30 Thread silvioprog
Oops, was these flags removed?: MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG On Mon, Jan 30, 2017 at 4:35 PM, silvioprog wrote: > I can't remember at this moment, but it was fixed with a message talking > something like "X is deprecated, use Y". BT

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-30 Thread silvioprog
On Mon, Jan 30, 2017 at 4:48 PM, silvioprog wrote: > Oops, was these flags removed? > Damn typo. I meant "... were these flags ...". -.-' -- Silvio Clécio

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-30 Thread silvioprog
On Mon, Jan 30, 2017 at 5:38 PM, Evgeny Grin wrote: > No. Those flags are not removed. Do you have problems with it? > > -- > Best Wishes, > Evgeny Grin > Yes, I do. My MHD version: 0.9.52. Problem: "error: ‘MHD_USE_ERROR_LOG’ undeclared". But it compiles fine with other flags like MHD_USE_EPOLL

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-31 Thread silvioprog
E_EPOLL_INTERNALLY can be used. On Tue, Jan 31, 2017 at 8:58 AM, Christian Grothoff wrote: > On 01/31/2017 05:27 AM, silvioprog wrote: > > On Mon, Jan 30, 2017 at 5:38 PM, Evgeny Grin > <mailto:k...@yandex.ru>> wrote: > > > > No. Those flags are not rem

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-31 Thread silvioprog
y new flags were added in git and are not yet released. > > -- > Best Wishes, > Evgeny Grin > > 31.01.2017, 07:28, "silvioprog" : > > On Mon, Jan 30, 2017 at 5:38 PM, Evgeny Grin wrote: > > No. Those flags are not removed. Do you have problems with it? >

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-01-31 Thread silvioprog
Complementing: $ cat /usr/local/include/microhttpd.h | grep 'MHD_VERSION' #define MHD_VERSION 0x00095102 How to convert 0x00095102 version in human readable returning something like 0.9.52? On Tue, Jan 31, 2017 at 1:37 PM, silvioprog wrote: > Hm... I've followed MHD from GIT

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-02-03 Thread silvioprog
Thanks a lot for the tips! :-) On Tue, Jan 31, 2017 at 3:13 PM, Christian Grothoff wrote: > On 01/31/2017 05:59 PM, silvioprog wrote: > > Complementing: > > > > $ cat /usr/local/include/microhttpd.h | grep 'MHD_VERSION' > > #define MHD_VERSION 0x00095

Re: [libmicrohttpd] Typo?: MHD_SUPPRESS_DATE_NO_CLOCK and MHD_NO_FLAG

2017-02-03 Thread silvioprog
Hello guys, Problem solved. The problem was I'm using features available only in trunk version but local installed version is 0.9.52. Thanks Grothoff and Grin for the help! :-) On Tue, Jan 31, 2017 at 1:59 PM, silvioprog wrote: > Complementing: > > $ cat /usr/local/include/micro

[libmicrohttpd] Could someone send MHD to the "Comparison of web server software" at Wikipedia?

2017-02-03 Thread silvioprog
Hello masters, Wikipedia has a page named "Comparison of web server software"[1] comparing many popular HTTP libraries/apps like Mongoose, thttpd, LigHttpD, Apache/Nginx and so on, so it would be nice to add MHD to the list too, setting fields like license, last ver., basic/digest auth, SSL/TLS, G

[libmicrohttpd] How to compile MHD for ARMv7?

2017-02-15 Thread silvioprog
tform/external/libmicrohttpd/+/3b641bc5341bd35a4b798224d4c637c65d78ada0/Android.mk>)* Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildArm7Debug'. > Build command failed. Error while executing '/home/silvioprog/Android/Sdk/cmake/3.6

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-15 Thread silvioprog
: yes Digest auth.: yes Postproc: yes HTTPS support: no (disabled) poll support: yes epoll support: yes build docs:yes build examples:yes configure: License : LGPL or eCos On Thu, Feb 16, 2017 at 2:42 AM, silvioprog wrote: >

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-15 Thread silvioprog
The attached patch fix the compilation. Now I'm going to implement and test my ARM (Android) project using MHD as HTTP server! :-) -- Silvio Clécio From a6502e13c302fd935b3d04cf55a583a6ce39ea9d Mon Sep 17 00:00:00 2001 From: silvioprog Date: Thu, 16 Feb 2017 03:44:37 -0300 Subject: [PATCH

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-17 Thread silvioprog
Perfect dude! :-) I'm going to retest it (from trunk) and back feedback ... On Thu, Feb 16, 2017 at 7:22 AM, Christian Grothoff wrote: > On 02/16/2017 07:48 AM, silvioprog wrote: > > The attached patch fix the compilation. > > Maybe, but as written it will break compilat

Re: [libmicrohttpd] RPM package for MHD v0.9.50

2017-02-17 Thread silvioprog
Use Ctrl+F + "microhttpd" in this list: http://www.filewatcher.com/b/ftp/ftp.gwdg.de/pub/opensuse/repositories/filesharing/openSUSE_Leap_42.1/x86_64-0.html On Fri, Feb 17, 2017 at 8:47 AM, Miguel Sancho wrote: > Hi MHD Team, > I am looking for RPM packages for MHD version 0.9.50 >

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-17 Thread silvioprog
y Grin > > On 16.02.2017 9:03, silvioprog wrote: > > Oops, the full log of ./configure: > > > > $ ./configure --host=arm-linux-androideabi > > --target=arm-linux-androideabi --disable-httpschecking for a > > BSD-compatible install... /usr/bin/install -c > > check

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-18 Thread silvioprog
Oh, sorry my delay. I updated my GIT copy to SHA 82d65c48 and rebuild my Android app, but same problem when I try to compile it. :-/ config.log in attachment. On Thu, Feb 16, 2017 at 7:22 AM, Christian Grothoff wrote: > On 02/16/2017 07:48 AM, silvioprog wrote: > > The attached patc

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-18 Thread silvioprog
Done. In attachment (from 0.9.52). On Fri, Feb 17, 2017 at 11:09 AM, silvioprog wrote: > Yes, I can! :-) > > I'm going to get it from the stable package 0.9.52 ... > > On Fri, Feb 17, 2017 at 5:46 AM, Evgeny Grin wrote: > >> Hi! >> >> Could you provid

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-18 Thread silvioprog
Please apply this new patch and delete sent config.logs. :-) This patch fix the problem after latest Grothoff's commit. (SHA 82d65c48) -- Silvio Clécio From ffeb64478ea9affd2a65b0ab60e11c1f54436030 Mon Sep 17 00:00:00 2001 From: silvioprog Date: Sun, 19 Feb 2017 02:05:36 -0300 Subject: [

Re: [libmicrohttpd] How to compile MHD for ARMv7?

2017-02-19 Thread silvioprog
thanks masters! :-) On Sun, Feb 19, 2017 at 7:58 AM, Christian Grothoff wrote: > Done. > > On 02/19/2017 06:05 AM, silvioprog wrote: > > Please apply this new patch and delete sent config.logs. :-) This patch > fix > > the problem after latest Grothoff

Re: [libmicrohttpd] RPM package for MHD v0.9.50

2017-02-20 Thread silvioprog
Hm... so you need the 32 bits package: ftp://ftp.gwdg.de/pub/opensuse/repositories/filesharing/openSUSE_Leap_42.1/i586/libmicrohttpd12-0.9.50-58.1.i586.rpm . But I'm not sure if it is compatible with CentOS. :-/ Specifically for CentOS I found only the version 0.9.33: https://pkgs.org/download/libm

[libmicrohttpd] MHD can't find MO files

2017-02-24 Thread silvioprog
Hello masters, I'm trying to translate the MHD messages, but any success in my tests. :-/ My steps (using MHD from trunk): # build + install ./bootstrap && ./configure && sudo make install-strip && sudo ldconfig # generate the POT file xgettext --keyword=_ --language=C --add-comments --sort-out

Re: [libmicrohttpd] MHD can't find MO files

2017-02-24 Thread silvioprog
Complementing, the output translated message (for pt_BR) should be "Falha ao vincular à porta: Permission denied" instead of "Failed to bind to port 80: Permission denied". On Fri, Feb 24, 2017 at 7:41 PM, silvioprog wrote: > Hello masters, > > I'm trying to t

Re: [libmicrohttpd] MHD can't find MO files

2017-02-24 Thread silvioprog
2017 at 7:45 PM, silvioprog wrote: > Complementing, the output translated message (for pt_BR) should be "Falha > ao vincular à porta: Permission denied" instead of "Failed to bind to > port 80: Permission denied". > > On Fri, Feb 24, 2017 at 7:41 PM, silvioprog wrote:

Re: [libmicrohttpd] MHD can't find MO files

2017-02-24 Thread silvioprog
Issued as #0004924 <https://gnunet.org/bugs/view.php?id=4924>. :-) On Fri, Feb 24, 2017 at 8:03 PM, silvioprog wrote: > ... and looking at gettext() docs, for libraries it must be "#define > _(String) dgettext (*PACKAGE*, String)": https://www.gnu.org/ > software/ge

Re: [libmicrohttpd] MHD can't find MO files

2017-02-24 Thread silvioprog
On Fri, Feb 24, 2017 at 9:46 PM, Christian Grothoff wrote: > n 02/24/2017 11:41 PM, silvioprog wrote: > > P.S: Looking at mhd_options.h I found the following comment: > > > > /** > > * Macro to make it easy to mark text for translation. Note that > > * we do n

[libmicrohttpd] fix tipo: `MHD_FEATURE_MESSGES` -> `MHD_FEATURE_MESSAGES`. #2

2017-02-24 Thread silvioprog
Hello dudes, Please apply this PR: https://github.com/Karlson2k/libmicrohttpd/pull/2 . Thank you! :-) -- Silvio Clécio

Re: [libmicrohttpd] MHD can't find MO files

2017-02-24 Thread silvioprog
wrote: > On 02/25/2017 03:05 AM, silvioprog wrote: > > > > Anyway I'm curious, is there any special reason to MHD not to call > > bindtextdomain() internally? 🤔 (it seems locale.h/libintl.h is present > in > > all SOs supported by MHD ...) > > Yes, to minimize

[libmicrohttpd] [PATCH] add authors and copyright to the example `timeout.c`

2017-02-26 Thread silvioprog
Hello masters, This attached patch adds the authors/copyright to the `timeout.c` example. Thank you! -- Silvio Clécio From 59f1f5d34568aea1d7078a83325424bb48df7ea8 Mon Sep 17 00:00:00 2001 From: silvioprog Date: Sun, 26 Feb 2017 16:49:59 -0300 Subject: [PATCH] add authors and copyright to the

[libmicrohttpd] Trunk version 0.9.52?

2017-02-26 Thread silvioprog
Hello, Compiling MHD from trunk, it seems generated package will be libmicrohttpd-0.9.52.tar.gz. Why not libmicrohttpd-0.9.53.tar.gz ?! Thank you! -- Silvio Clécio

[libmicrohttpd] Trunk: make distcheck fail

2017-02-26 Thread silvioprog
Hello, I'm trying generate a new package from MHD trunk, however make distcheck stops with the following log (it seems make distcheck in MHD requires root access ...): [snip] make[1]: Entering directory '/home/silvioprog/dev/git/libmicrohttpd/libmicrohttpd-0.9.52/_build/sub'

Re: [libmicrohttpd] [PATCH] add authors and copyright to the example `timeout.c`

2017-02-26 Thread silvioprog
Strange, I got same problem here. I've generated it using command git format-patch HEAD^ in the root MHD directory, anyway I'm going to send the entire file ... On Sun, Feb 26, 2017 at 6:19 PM, Christian Grothoff wrote: > Actually, we must, according to the GNU maintainer guide (it was an > over

Re: [libmicrohttpd] [PATCH] add authors and copyright to the example `timeout.c`

2017-02-26 Thread silvioprog
Done. Attached the entire file. :-) It was applied in my fork too: https://gitlab.com/silvioprog/libmicrohttpd/ commit/2660ba6a163ad485aecd45b1f61d77ad32417061 . (I'm checking how to create pull-requests in GitLab platform ...) (anyway I need to check why my git generates broken pa

Re: [libmicrohttpd] [PATCH] add authors and copyright to the example `timeout.c`

2017-02-26 Thread silvioprog
Done too. ^^' https://gitlab.com/karlson2k/libmicrohttpd/merge_requests/1 On Sun, Feb 26, 2017 at 6:44 PM, silvioprog wrote: > Done. Attached the entire file. :-) > > It was applied in my fork too: https://gitlab.com/silvio > prog/libmicrohttpd/commit/2660ba6a163ad485aecd45b

Re: [libmicrohttpd] Trunk: make distcheck fail

2017-02-27 Thread silvioprog
Fail again. :-/ My development directory is ~/dev/git/libmicrohttpd, but just for testing, I've done: silvioprog@silvioprog-dev:~$ cd ~ silvioprog@silvioprog-dev:~$ echo $USER silvioprog silvioprog@silvioprog-dev:~$ git clone https://gnunet.org/git/libmicrohttpd.git silvioprog@silviopro

Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections

2017-03-15 Thread silvioprog
Hello Vitaliy, Sorry, but after applying that changes, could you share a small example showing how to use MHD with external epoll? If so, it could be very useful for the community, and MHD core could distribute it in the examples directory. :-) On Wed, Mar 15, 2017 at 6:29 PM, Vitaliy T wrote:

Re: [libmicrohttpd] [PATCH]: MHD_connection_update_event_loop_info sends INTERNAL_ERROR for suspended connections

2017-03-16 Thread silvioprog
Awesome project, I'll study it. Thanks for sharing! :-) On Thu, Mar 16, 2017 at 10:57 AM, Vitaliy T wrote: > Hi, > > On 16 March 2017 at 00:29, Vitaliy T wrote: > > On 15 March 2017 at 23:54, Evgeny Grin wrote: > >> That's why I asked about user code example. I can't test what we trying > >> t

<    1   2   3