This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NXCM1135DefaultConfigIT runtime | |
=============================== | |
16:21:31 | |
16:21:37 vista | |
----------------- | |
6 seconds | |
16:23:33 | |
16:23:39 ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
[INFO] Installing /Users/cstamas/worx/sonatype/nexus-core/nexus/nexus-distributions/nexus-oss-webapp/target/nexus-oss-webapp-1.9-SNAPSHOT-tests.jar to /Users/cstamas/.m2/repository/org/sonatype/nexus/nexus-oss-webapp/1.9-SNAPSHOT/nexus-oss-webapp-1.9-SNAPSHOT-tests.jar | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Nexus : Core Plugins : OSS LDAP : Plugin ITs 1.9-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
Downloading: https://repository.sonatype.org/content/groups/sonatype-grid/org/sonatype/plugins/nexus-test-environment-maven-plugin/1.6-SNAPSHOT/maven-metadata.xml | |
Downloaded: https://repository.sonatype.org/content/groups/sonatype-grid/org/sonatype/plugins/nexus-test-environment-maven-plugin/1.6-SNAPSHOT/maven-metadata.xml (390 B at 0.2 KB/sec) | |
[INFO] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<urn:directory:apacheds-core:jar:0.9> | |
a pom:Artifact ; | |
wikipedia:Computer_file <maven:///directory/directory/apacheds-core/0.9//apacheds-core-0.9.jar> ; | |
pom:name "ApacheDS Core" ; | |
pom:groupId "directory" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package craig; | |
import org.apache.maven.index.Field; | |
/** | |
* Craig's Ontology | |
* | |
* @author cstamas | |
*/ | |
public interface CRAIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cstamas@marvin async-http-client$ mvn clean install -Dtest=NettyBodyDeferringAsyncHandlerTest | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building async-http-client 1.5.1-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ async-http-client --- | |
[INFO] Deleting /Users/cstamas/worx/async-http-client/target | |
[INFO] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class SlowAndBigHandler extends AbstractHandler { | |
public void handle(String pathInContext, Request request, | |
HttpServletRequest httpRequest, HttpServletResponse httpResponse) | |
throws IOException, ServletException { | |
// 512MB large download | |
// 512 * 1024 * 1024 = 536870912 | |
httpResponse.setStatus(200); | |
httpResponse.setContentLength(HALF_GIG); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZipFile vs ZipInputStream | |
========================= | |
Tested against ZIP file having 829 entries and 28783146 bytes big (compressed size). | |
Source code attached to the end of this gist. | |
Platform: Mac OSX 10.6.6, | |
java version "1.6.0_22" | |
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The IT thread "main": it is in the middle of doing a request to Nexus | |
"main" prio=5 tid=103000000 nid=0x100501000 runnable [1004fd000] | |
java.lang.Thread.State: RUNNABLE | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.read(SocketInputStream.java:129) | |
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) | |
at java.io.BufferedInputStream.read(BufferedInputStream.java:237) | |
- locked <1071e0b00> (a java.io.BufferedInputStream) | |
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failed tests: | |
optionsTest(com.ning.http.client.async.netty.NettyAsyncProviderBasicTest) | |
asyncOptionsTest(com.ning.http.client.async.netty.NettyAsyncStreamHandlerTest) | |
asyncDoGetMaxConnectionsTest(com.ning.http.client.async.netty.NettyConnectionPoolTest) | |
testRequestProxy(com.ning.http.client.async.netty.NettyProxyTunnellingTest) | |
Tests run: 264, Failures: 4, Errors: 0, Skipped: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cstamas@Marvin tmp$ wget -S -dd https://repository.sonatype.org/service/local/status --auth-no-challenge --user=cstamas --password=XXXXXXXXX | |
Setting --debug (debug) to 1 | |
Setting --auth-no-challenge (authnochallenge) to 1 | |
Setting --user (user) to cstamas | |
Setting --password (password) to XXXXXXXXXX | |
DEBUG output created by Wget 1.12 on darwin10.0.0. | |
--2011-02-16 18:16:19-- https://repository.sonatype.org/service/local/status | |
Auth-without-challenge set, sending Basic credentials. | |
repository.sonatype.org feloldása… 63.246.20.88 |