writeBuySellOffers(buys,sells,offerCount,out);
out.finish();
progresslog("pctb send...");
- InputStream in = sendInitialData(new ByteArrayInputStream(outStream.toByteArray()));
+
+ byte[] ba = outStream.toByteArray();
+ if (dtxt!=null) {
+ FileOutputStream dbgdata = new FileOutputStream(new File("jarrg-debug-pctb-marketdata.gz"));
+ dbgdata.write(ba);
+ dbgdata.close();
+ }
+
+ InputStream in = sendInitialData(new ByteArrayInputStream(ba));
progresslog("pctb sent.");
if (in == null) return;
pm.setProgress(80);