reduced buffer size and updated domain name reference (dev.i2p.net, not i2p.dyndns.net)
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user