Scott Battaglia wrote:
So is it Google not completely sending the data?
No, probably not. If you use a Inflater with the nowrap option, you need to add an extra dummy byte to the byte array, as documented in the API:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/Inflater.html#Inflater(boolean)I have just tried to add the code below to GoogleAccountsService, method inflate() (diff against version 1.1):
243c243,249 < inflater.setInput(bytes); --- > > byte[] extendedBytes = new byte[bytes.length + 1]; > System.arraycopy(bytes, 0, extendedBytes, 0, bytes.length); > extendedBytes[bytes.length] = 0; > > inflater.setInput(extendedBytes); >... and it seems to be working. We saw usually one error on a bit less than 30 successes, and now we haven't seen any in over 300 (knock on wood).
///Regards, -- | _/ _/_/_/ _/ _/ _/_/_/ | Jens Carlberg | _/ _/ _/_/ _/ _/ | UNIT, Linköpings universitet | _/ _/_/ _/ _/_/ _/ | Tel: +46 13 281758 | _/_/ _/_/_/ _/ _/ _/_/_/ | Fax: +46 13 284400
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
