summaryrefslogtreecommitdiff
path: root/lib/sendf.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-09-22 23:12:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-09-22 23:12:00 +0000
commit391e8afd1f6695cb57738790676cfa4d57d54bcb (patch)
tree5752243fa1fbf088953fa101c0a542873f2050cb /lib/sendf.h
parenteff2c3a621c539713ecd641c020f06ac28a7ea1d (diff)
downloadcurl-391e8afd1f6695cb57738790676cfa4d57d54bcb.tar.gz
- Made the SOCKS code use the new Curl_read_plain() function to fix the bug
Markus Moeller reported: http://curl.haxx.se/mail/archive-2008-09/0016.html - recv() errors other than those equal to EAGAIN now cause proper CURLE_RECV_ERROR to get returned. This made test case 160 fail so I've now disabled it until we can figure out another way to exercise that logic.
Diffstat (limited to 'lib/sendf.h')
-rw-r--r--lib/sendf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sendf.h b/lib/sendf.h
index 2d507ee23..71ad6febd 100644
--- a/lib/sendf.h
+++ b/lib/sendf.h
@@ -58,6 +58,12 @@ CURLcode Curl_client_write(struct connectdata *conn, int type, char *ptr,
void Curl_read_rewind(struct connectdata *conn,
size_t extraBytesRead);
+/* internal read-function, does plain socket only */
+CURLcode Curl_read_plain(curl_socket_t sockfd,
+ char *buf,
+ size_t bytesfromsocket,
+ ssize_t *n);
+
/* internal read-function, does plain socket, SSL and krb4 */
int Curl_read(struct connectdata *conn, curl_socket_t sockfd,
char *buf, size_t buffersize,