- made a separate buffer for uploads (due to the non-blocking stuff) - added two connectdata struct fields for non-blocking uploads
cases where EWOULDBLOCK or equivalent is returned. We must not block.
… try again. THIS IS NOT A NICE FIX.
… try again. THIS IS NOT A NICE FIX. We should/must make a select() then and only retry when we can write to the socket again.
…sible to compile libcurl stuff without any prior knowledge: cc=`curl-config --cc` cflags=`curl-config --cflags` libs=`curl-config --libs` $cc $flags $libs -o example example.c Or if you prefer, the oh-so-cool single-line version: `curl-config --cc --cflags --libs` -o example example.c
…urces on unix-like systems
…bcurl would crash. This corrects the problem.
over to non-blocking sockets, but this loops very nastily. We should return back to the select() and wait there until more data arrives, not just blindly attempt again and again...
…ed so that it won't create an empty file if the remote file doesn't exist