jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis Savo <ts...@IFILM.com>
Subject RE: Moving forward with JCS
Date Tue, 06 Apr 2004 00:13:28 GMT
Sorry. That really should read:

diff -r1.5 LateralTCPSender.java
228c228,231
<         oos.writeObject(led);
---
>       	if (socket.getInputStream().available() > 0) {
>       		socket.getInputStream().read(new
byte[socket.getInputStream().available()]);
>       	}
>       	oos.writeObject(led);

I'll get it right eventually...

-Travis Savo

>A quick and dirty fix for this would be to add the following at line 228 of
>LateralTCPSender (right after the try{, but before we send the request):

>socket.getInputStream().read(new
byte[socket.getInputStream().available()]);

>This will read anything that hasn't been read already (and discards it),
>THEN sends the request, and reads the result.


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org


Mime
View raw message