summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-30 06:32:18 (EDT)
committerEike Stepper2007-08-30 06:32:18 (EDT)
commit4282a67af5238a5bcfa22133b8d8731b3cc9ac8e (patch)
treebbb2b52b1af2305f0092f106530bc963d1bb72d9
parentb7d3ee8993a3d2d5324cf3ad880343fa2a991317 (diff)
downloadcdo-4282a67af5238a5bcfa22133b8d8731b3cc9ac8e.zip
cdo-4282a67af5238a5bcfa22133b8d8731b3cc9ac8e.tar.gz
cdo-4282a67af5238a5bcfa22133b8d8731b3cc9ac8e.tar.bz2
[201265] Handling large Collection by having them in chunk
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201265
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java
index 3a7ef4b..a40c966 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Buffer.java
@@ -217,6 +217,10 @@ public class Buffer implements IBuffer
return byteBuffer;
}
+ /**
+ * @return <code>true</code> if the buffer has been completely written,
+ * <code>false</code> otherwise.
+ */
public boolean write(SocketChannel socketChannel) throws IOException
{
if (state != BufferState.PUTTING && state != BufferState.WRITING)
@@ -239,7 +243,7 @@ public class Buffer implements IBuffer
if (TRACER.isEnabled())
{
- TRACER.trace("Writing " + (payloadSize - 1) + " bytes" //$NON-NLS-1$ //$NON-NLS-2$
+ TRACER.trace("Writing " + (Math.abs(payloadSize) - 1) + " bytes" //$NON-NLS-1$ //$NON-NLS-2$
+ (eos ? " (EOS)" : "") + NL + formatContent()); //$NON-NLS-1$ //$NON-NLS-2$
}