GitLab oppdateres den 08.05.2019 ifra 08:30/09:00. Oppdatering estimert til omtrent 20/30+ minutter. GitLab 11.10.x er planlagt å bli installert ved oppdateringen.

Commit cb88cf6f authored by Ivar Refsdal's avatar Ivar Refsdal

Update server to include response...

parent 6712ce38
......@@ -28,12 +28,27 @@ public class DataSetConverter {
FileItemStream item = iter.next();
InputStream stream = item.openStream();
String filename = UUID.randomUUID().toString() + ".bin";
try (OutputStream os = new BufferedOutputStream(new FileOutputStream("/tmp/" + filename))) {
String tmpFileName = "/tmp/" + filename;
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(tmpFileName))) {
IOUtils.copy(stream, os);
}
long diff = System.currentTimeMillis() - starttime;
System.out.println("Saved filename " + filename + " in " + diff);
}
File responseFile = new File("response.bin");
if (responseFile.exists()) {
long starttime = System.currentTimeMillis();
try (InputStream is = new BufferedInputStream(new FileInputStream(responseFile))) {
try (OutputStream os = new BufferedOutputStream(response.getOutputStream())) {
IOUtils.copy(is, os);
}
}
long diff = System.currentTimeMillis() - starttime;
System.out.println("Wrote response.bin in " + diff);
} else {
System.out.println("no response.bin found... Absolute path: " + responseFile.getAbsolutePath());
}
} catch (Exception e) {
e.printStackTrace();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment