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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
7ef153696b
commit
d09dd29be0
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user