aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-02Add a polling loop in main to read from more than one socket at once. Add ↵Joe Mason
the O_NONBLOCK and SO_KEEPALIVE flag to all sockets. Note that several loops which used to continue on a return value of 0 (theoretical since 0 would never be returned without O_NONBLOCK) now break on 0 so that they won't continue reading until after poll is called again.
2012-08-02Change return values of get_request, accept_connection and ↵Joe Mason
service_connection to add a return code for non-blocking sockets: now -1 means error or connection finished, 1 means data was read, and 0 means there is no data available now so need to wait for poll (new return value)
2012-08-02Hoist the loop out of get_request, and make sure that it can be reentered ↵Joe Mason
when a request is half-finished. Note the the req struct used to be re-initialized AFTER reading pipeline data, so now that we initialize it from the caller we must be careful not to overwrite the pipeline data. Also we now need to handle the case where the buffer is already full when get_request is called - previously this never happened as it was always called with an empty buffer and looped until done. Now get_request is called in a loop, so the next step is to run the loop on a socket only when poll signals it is readable.
2012-08-02Move blocks of code from the sws main loop into their own functions for ↵Joe Mason
easier refactoring later. The next step will be to call the correct function after a poll, rather than looping unconditionally
2012-08-02Remove the --fork option of sws, since it makes refactoring to use poll more ↵Joe Mason
complicated and should be redundant once we poll
2012-07-30file: use fdopen() for uploaded files if availableKamil Dudka
It eliminates noisy events when using inotify and fixes a TOCTOU issue. Bug: https://bugzilla.redhat.com/844385
2012-07-29Added DWANT_IDN_PROTOTYPES define for MSVC too.Guenter Knauf
Discussion on the list: http://curl.haxx.se/mail/lib-2012-07/0271.html
2012-07-29Added Win32 problems.Guenter Knauf
2012-07-29Added hint to read docs/INSTALL too.Guenter Knauf
2012-07-29Added new file to distro.Guenter Knauf
2012-07-28TODO: Updated after 7.27.0 releaseSteve Holme
Removed APOP and SASL authentication from the POP3 section and metalink support from the client section as these features were implemented in this release. Moved adding gssapi to SASL into it's own section rather than repeat it for each protocol.
2012-07-28TODO-RELEASE: updated after 7.27.0 releaseDaniel Stenberg
2012-07-28THANKS: 12 new contributors from the 7.27.0 releaseDaniel Stenberg
2012-07-27version bump: start towards next releaseDaniel Stenberg
Let's call it 7.27.1 for now, but it it probably going to become 7.28.0 when released.
2012-07-27Fixed compiler warning 'unused parameter'.Guenter Knauf
2012-07-27Added prototypes to kill compiler warning.Guenter Knauf
2012-07-27Added --with-winidn to configure.Guenter Knauf
This needs another look from the configure experts. I tested that it works so far with MinGW64 cross-compiler; libcurl builds and links fine, but curl not yet ...
2012-07-27Update man page info on --metalink and typo.Ant Bryan
2012-07-27RELEASE-NOTES: remove mentioned of bug never in a releaseDaniel Stenberg
The --silent bug came with 7561a0fc834c435 which was never in a release. Pointed out by Kamil Dudka
2012-07-27RELEASE-NOTES: synced with 33b815e894fbDaniel Stenberg
4 more bugfixes, 3 more contributors
2012-07-26Changed Windows IDN text to 'WinIDN'.Guenter Knauf
Synced the output to the same short form as we now use for Windows SSL (WinSSL).
2012-07-25darwinssl: fixed freeze involving the multi interfaceNick Zitzmann
Previously the curl_multi interface would freeze if darwinssl was enabled and at least one of the handles tried to connect to a Web site using HTTPS. Removed the "wouldblock" state darwinssl was using because I figured out a solution for our "would block but in which direction?" dilemma.
2012-07-25Added support for tls-srp to MinGW builds.Guenter Knauf
2012-07-24curl_easy_setopt: fix typoDaniel Stenberg
Reported by: Santhana Todatry
2012-07-22keepalive: multiply value for OS-specific unitsDaniel Stenberg
DragonFly uses milliseconds, while our API and Linux use full seconds. Reported by: John Marino Bug: http://curl.haxx.se/bug/view.cgi?id=3546257
2012-07-22http: print reason phrase from HTTP status line on errorKamil Dudka
Bug: https://bugzilla.redhat.com/676596
2012-07-22tool_operate: fix misplaced initialization of orig_noprogressKamil Dudka
... and orig_isatty which caused --silent to be entirely ignored in case the standard output was redirected to a file!
2012-07-21Client's "qop" value should not be quoted (RFC2617, section 3.2.2).Anton Yabchinskiy
2012-07-21Fixed typo.Guenter Knauf
2012-07-20make: make distclean work againDaniel Stenberg
The clean-local hook needed some polish to make sure make distclean works. Added comment describing why.
2012-07-20test Makefile: only feature 'unit' once in the list of dirsDaniel Stenberg
2012-07-20Fixed some typos in documentationDan Fandrich
2012-07-20Fixed CR issue with Win32 version on MSYS.Guenter Knauf
Previous fix didnt work on Linux ...
2012-07-20Fixed CR issue with Win32 version on MSYS.Guenter Knauf
2012-07-20Fixed MSYS <-> Windows path convertion.Guenter Knauf
Replaced the Windows real path from mount hack with a more reliable and simpler hack: the MSYS shell has a builtin pwd which understands a -W option which does convertion to Windows paths. Tested and confirmed that this works on all MSYS versions I have back to a 3 year old one.
2012-07-19Follow-up fix to detect SSL libs with MinGW.Guenter Knauf
1) the check for winssl needs to come before nss check 2) the SSL checks must begin with a new if or else we will never find any SSL lib with MinGW.
2012-07-17Tell git to not convert configure-related files.Guenter Knauf
2012-07-17Trial to teach runtests.pl about WinSSL.Guenter Knauf
2012-07-17Fixed warning 'uninitialized value in numeric gt'.Guenter Knauf
This is a MSYS/MinGW-only warning; full warning text is: Use of uninitialized value in numeric gt (>) at ../../curl/tests/runtests.pl line 2227.
2012-07-15RELEASE-NOTES: synced with 9d11716933616Daniel Stenberg
Fixed 6 bugs, added 3 contributors
2012-07-15multi_runsingle: added precaution against easy_conn NULL pointerDaniel Stenberg
In many states the easy_conn pointer is referenced and just assumed to be working. This is an added extra check since analyzing indicates there's a risk we can end up in these states with a NULL pointer there.
2012-07-15getparam: fix the GetStr() macroDaniel Stenberg
It should return PARAM_NO_MEM if the strdup fails. Spotted by clang-analyzer
2012-07-15Tell git to not convert configure-related files.Guenter Knauf
2012-07-13parse_proxy: remove dead assignmentDaniel Stenberg
Spotted by clang-analyzer
2012-07-13ftp_do_more: add missing check of return codeDaniel Stenberg
Spotted by clang-analyzer. The return code was never checked, just stored.
2012-07-13getinfo: use va_end and cut off Curl_ from static funcsDaniel Stenberg
va_end() needs to be used after va_start() and we don't normally use Curl_ prefixes for purely static functions.
2012-07-13Split up Curl_getinfoPhilip Craig
This avoids false positives from clang's scan-build.
2012-07-12Added error checking for curl_global_init().Guenter Knauf
2012-07-12Added curl_global_* functions.Guenter Knauf
2012-07-12Minor fixes to MinGW makefiles.Guenter Knauf