diff options
Diffstat (limited to 'databases/freetds/files/exp-patch-src::tds::read.c')
-rw-r--r-- | databases/freetds/files/exp-patch-src::tds::read.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/databases/freetds/files/exp-patch-src::tds::read.c b/databases/freetds/files/exp-patch-src::tds::read.c deleted file mode 100644 index 8797a6a4e3a6..000000000000 --- a/databases/freetds/files/exp-patch-src::tds::read.c +++ /dev/null @@ -1,16 +0,0 @@ ---- src/tds/read.c.orig Thu Jan 15 17:04:28 2004 -+++ src/tds/read.c Thu Jan 15 17:04:35 2004 -@@ -164,6 +164,13 @@ - buflen -= len; - got += len; - } -+ -+ /* When we get a timeout on select(), return 0. Don't return -1, because -+ * that would lead to a disconnect -+ * OTOH, do not let this pass to prevent an infinite loop when there is -+ * no data on the wire */ -+ if (retcode == 0) -+ return 0; - - OK_TIMEOUT: - now = time(NULL); |