aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-27 06:54:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-27 06:54:02 +0800
commitd09dd29be065825b234010bb6d3fd3220c3620fe (patch)
tree59b11607fd8caff6539a23e0a737ee6cd4d848ba
parent7ef153696bb448cce02a2f0b70799d0db663b3b6 (diff)
downloadgsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.tar
gsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.tar.gz
gsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.tar.bz2
gsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.tar.lz
gsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.tar.xz
gsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.tar.zst
gsoc2013-evolution-d09dd29be065825b234010bb6d3fd3220c3620fe.zip
Check for EWOULDBLOCK too? (stream_read): Same. (stream_flush): Return 0
2001-10-26 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK too? (stream_read): Same. (stream_flush): Return 0 always, fsync() and tcp sockets don't play nice :-) * providers/imap/camel-imap-message-cache.c (camel_imap_message_cache_get): Lets try putting a camel_stream_reset() here. Logic being that the stream may have been read from since it was cached and thus our caller may try reading from it and get no data from it since it is already at the EOS. This may fix bug #12943. svn path=/trunk/; revision=14180
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-tcp-stream-raw.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 98315fcf8d..06f181bd77 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,7 +1,10 @@
2001-10-26 Jeffrey Stedfast <fejj@ximian.com>
- * camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK too?
+ * camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK
+ too?
(stream_read): Same.
+ (stream_flush): Return 0 always, fsync() and tcp sockets don't
+ play nice :-)
* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_get): Lets try putting a
diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c
index d019b4c639..45303f8842 100644
--- a/camel/camel-tcp-stream-raw.c
+++ b/camel/camel-tcp-stream-raw.c
@@ -295,7 +295,7 @@ stream_write (CamelStream *stream, const char *buffer, size_t n)
static int
stream_flush (CamelStream *stream)
{
- return fsync (((CamelTcpStreamRaw *)stream)->sockfd);
+ return 0;
}
static int