projects
/
gpgme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b48ca5
)
Ugly kludge to avoid blocking in W32's _gpgme_io_write
author
Werner Koch
<wk@gnupg.org>
Tue, 30 Jan 2001 12:06:29 +0000
(12:06 +0000)
committer
Werner Koch
<wk@gnupg.org>
Tue, 30 Jan 2001 12:06:29 +0000
(12:06 +0000)
trunk/gpgme/w32-io.c
patch
|
blob
|
history
diff --git
a/trunk/gpgme/w32-io.c
b/trunk/gpgme/w32-io.c
index c16e4415a873876a3521665e36406d892cade83f..1e67a64236982057f0cc69aabb118ff747867e5f 100644
(file)
--- a/
trunk/gpgme/w32-io.c
+++ b/
trunk/gpgme/w32-io.c
@@
-287,6
+287,10
@@
_gpgme_io_write ( int fd, const void *buffer, size_t count )
DWORD nwritten;
HANDLE h = fd_to_handle (fd);
+#warning writing blocks for large counts, so we limit it here.
+ if (count > 500)
+ count = 500;
+
DEBUG2 ("fd %d: about to write %d bytes\n", fd, (int)count );
if ( !WriteFile ( h, buffer, count, &nwritten, NULL) ) {
DEBUG1 ("WriteFile failed: ec=%d\n", (int)GetLastError ());