reduced buffer size and updated domain name reference (dev.i2p.net, not i2p.dyndns.net)

This commit is contained in:
jrandom
2004-06-13 19:31:22 +00:00
committed by zzz
parent 95c33e88ed
commit da8341d014

View File

@ -50,7 +50,7 @@ public class HTTPSendData {
con.setRequestProperty("Content-length", "" + length); con.setRequestProperty("Content-length", "" + length);
OutputStream out = con.getOutputStream(); OutputStream out = con.getOutputStream();
byte buf[] = new byte[64 * 1024]; byte buf[] = new byte[1 * 1024];
int read; int read;
long sent = 0; long sent = 0;
GZIPOutputStream zipOut = new GZIPOutputStream(out); GZIPOutputStream zipOut = new GZIPOutputStream(out);
@ -79,7 +79,7 @@ public class HTTPSendData {
for (int i = 0; i < data.length; i++) for (int i = 0; i < data.length; i++)
data[i] = (byte) ((i % 26) + 'a'); data[i] = (byte) ((i % 26) + 'a');
boolean sent = HTTPSendData.postData("http://i2p.dnsalias.net/cgi-bin/submitMessageHistory", data.length, boolean sent = HTTPSendData.postData("http://dev.i2p.net/cgi-bin/submitMessageHistory", data.length,
new ByteArrayInputStream(data)); new ByteArrayInputStream(data));
_log.debug("Sent? " + sent); _log.debug("Sent? " + sent);
try { try {