From a14aaaf23fa8202fe60f5d7ba29dfe842ab5f80d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 31 Jan 2001 15:05:44 +0000 Subject: fixed up the telnet to work (using support from Linus Nielsen) --- lib/transfer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index 09c1262cb..92b56600c 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -161,6 +161,12 @@ _Transfer(struct connectdata *c_conn) Curl_pgrsTime(data, TIMER_PRETRANSFER); Curl_speedinit(data); + if((conn->sockfd == -1) && + (conn->writesockfd == -1)) { + /* nothing to read, nothing to write, we're already OK! */ + return CURLE_OK; + } + if (!conn->getheader) { header = FALSE; if(conn->size > 0) -- cgit v1.2.3