Re: configure for ISO C90

2017-04-03 Thread Dan Fandrich
On Mon, Apr 03, 2017 at 04:07:14PM +, Marcel Raad wrote: > Thanks for the pointer. tst_compi_strdup seems incomplete. According to the > documentation of AC_LANG_PROGRAM, it puts the second argument into a main > function. Calling strdup inside a function works fine and only results in >

Re: Getting away from the generated header file [RFC]

2017-04-03 Thread Daniel Stenberg
On Thu, 30 Mar 2017, Daniel Stenberg wrote: [2] = https://github.com/curl/curl/pull/1373 This has now landed in git master. The new include file is used in parallel with the old one that is still being used. There's a new test (number 1541) that verifies that the new header comes to the

Re: Reuse connection in half-closed state

2017-04-03 Thread Reese Grimsley
Yes, when I call curl_easy_perform, it sits and waits for more to come. After the connection times out, it goes ahead and attempts to call a POST operation. The GET request is supposed to open a connection that should time out after 60 minutes or more, but is only there to wait for directives.

Re: Recovering from dropped connections with multi curl

2017-04-03 Thread doa379
Hi Daniel, Thank you for the explanation. There is one further question I could ask you. If we look at the multi-uv example -- using the method of events on socket file descriptors: https://curl.haxx.se/libcurl/c/multi-uv.html When this statement comes to pass in program execution:

RE: configure for ISO C90

2017-04-03 Thread Marcel Raad
Hi Daniel, > I would strongly recommend using "./configure --enable-debug" instead. > Simpler > to write, adds many more pendantic compiler options and runs 'make > checksrc' > by default on the code etc. Thanks! I had assumed that option was for debug symbols or preprocessor definitions. > If

Re: configure for ISO C90

2017-04-03 Thread Daniel Stenberg
On Mon, 3 Apr 2017, Marcel Raad wrote: I know very little about Autotools and I'm trying to configure curl for ISO C90 using GCC with ./configure --enable-warnings CFLAGS="-std=c90" so that I can be sure to not rely on C99-isms. I would strongly recommend using "./configure --enable-debug"

configure for ISO C90

2017-04-03 Thread Marcel Raad
Hi, I know very little about Autotools and I'm trying to configure curl for ISO C90 using GCC with ./configure --enable-warnings CFLAGS="-std=c90" so that I can be sure to not rely on C99-isms. In config.log, I get these warnings: conftest.c:274:9: warning: implicit declaration of function