Skip to content

Instantly share code, notes, and snippets.

Request DefaultHttpRequest(chunked: false)
CONNECT repository.sonatype.org:443 HTTP/1.0
Host: repository.sonatype.org
Connection: keep-alive
Proxy-Connection: keep-alive
Accept: */*
User-Agent: NING/1.0
Response DefaultHttpResponse(chunked: false)
HTTP/1.0 200 Connection established
public void testPutLargeFile()
throws Exception
{
File file = new File( "/workspace/patch.txt" );
FileInputStream input = new FileInputStream(file);
Realm realm = new Realm.RealmBuilder().setPrincipal( "xxx" ).setPassword( "xxx" ).build();
ProxyServer proxyServer = new ProxyServer(ProxyServer.Protocol.HTTP, "192.168.2.106", 3128);
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.construct(NettyAsyncHttpProvider.java:442)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.buildRequest(NettyAsyncHttpProvider.java:425)
at com.ning.http.client.providers.netty.NettyConnectListener$Builder.build(NettyConnectListener.java:107)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.doConnect(NettyAsyncHttpProvider.java:715)
at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.execute(NettyAsyncHttpProvider.java:637)
at com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:481)
at com.ning.http.client.AsyncHttpClient$BoundRequestBuilder.execute(AsyncHttpClient.java:228)
at com.ning.http.client.async.LargePutViaSslTest.testPutLargeFile(LargePutViaSslTest.java:98)
@Test(groups = {"standalone", "async"})
public void asyncConnectInvalidFuture() throws Throwable {
AsyncHttpClient c = new AsyncHttpClient();
final AtomicInteger count = new AtomicInteger();
for (int i = 0; i < 20; i++) {
try {
Response response = c.preparePost("http://127.0.0.1:9999/").execute(new AsyncCompletionHandlerAdapter() {
/* @Override */
public void onThrowable(Throwable t) {
@Test(groups = "standalone")
public void idleRequestTimeoutTest() throws Exception {
AsyncHttpClient c = new AsyncHttpClient(
new AsyncHttpClientConfig.Builder().setIdleConnectionTimeoutInMs(10000).setRequestTimeoutInMs(20000).build());
FluentCaseInsensitiveStringsMap h = new FluentCaseInsensitiveStringsMap();
h.add("Content-Type", "application/x-www-form-urlencoded");
h.add("LockThread", "true");
long t1 = System.currentTimeMillis();
try {
diff --git a/client/pom.xml b/client/pom.xml
index 95a2a99..6ab8daf 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -55,7 +55,7 @@
<dependency>
<groupId>com.ning</groupId>
<artifactId>async-http-client</artifactId>
- <version>1.3.2</version>
+ <version>1.3.3-SNAPSHOT</version>
protected void setCredentials(XmlRpcHttpClientConfig pConfig) throws XmlRpcClientException {
String userName = pConfig.getBasicUserName();
if (userName != null) {
String enc = pConfig.getBasicEncoding();
if (enc == null) {
enc = XmlRpcStreamConfig.UTF8_ENCODING;
}
client.getParams().setParameter(HttpMethodParams.CREDENTIAL_CHARSET, enc);
Credentials creds = new UsernamePasswordCredentials(userName, pConfig.getBasicPassword());
AuthScope scope = new AuthScope(null, AuthScope.ANY_PORT, null, AuthScope.ANY_SCHEME);
2010-11-01 11:34:05,552 [AsyncHttpClient-Reaper] DEBUG o.m.ide.eclipse.io.HttpBaseSupport - [AsyncHttpClient-Reaper] Request Timeout expired for NettyResponseFuture{latch=java.util.concurrent.CountDownLatch@26fae93e[Count = 1], isDone=false, isCancelled=false, asyncHandler=org.maven.ide.eclipse.io.HttpPublisher$PushAsyncHandler@22e6f970, responseTimeoutInMs=60000, request=http://localhost:60696/file.txt HEAD, nettyRequest=DefaultHttpRequest(chunked: false)
HEAD /file.txt HTTP/1.1
Host: localhost:60696
Accept-Encoding: gzip
Connection: keep-alive
Accept: */*
User-Agent: NING/1.0, content=null, uri=http://localhost:60696/file.txt, keepAlive=true, httpResponse=null, exEx=null, redirectCount=0, reaperFuture=com.ning.http.client.providers.netty.NettyAsyncHttpProvider$ReaperFuture@382b7bd9, inAuth=false, statusReceived=false, touch=1288625640549}
2010-11-01 11:34:05,553 [AsyncHttpClient-Reaper] DEBUG o.m.ide.eclipse.io.HttpBaseSupport - [AsyncHttpClient-Reaper] abording Future NettyResponseFuture{latch=java.util
@jfarcand
jfarcand / gist:658410
Created November 1, 2010 15:59
What a Junk - from [email protected]
--
This message is sent automatically by the computer. If you receive this
message it means that your email address has been queued for deactivation;
this was as a result of a continuous error script (code:505) received from
this email address. To resolve this problem you must reset your email
address. In order to reset this email address, you must reply to this
e-mail by providing us the following Information for confirmation.
Current Email Address: { }
Current Email Password : { }
Tests in error:
testBootstrap(org.apache.maven.it.MavenITBootstrapTest)
testit(org.apache.maven.it.MavenITmng4834ParentProjectResolvedFromRemoteReposTest)
testit(org.apache.maven.it.MavenITmng4795DepResolutionInReactorProjectForkedByLifecycleTest)
testit(org.apache.maven.it.MavenITmng4786AntBased21xMojoSupportTest)
testit(org.apache.maven.it.MavenITmng4479ProjectLevelPluginDepUsedForCliConfigTest)
testit(org.apache.maven.it.MavenITmng4396AntBased20xMojoSupportTest)
testitJackrabbitBasedImpl(org.apache.maven.it.MavenITmng4360WebDavSupportTest)
testit(org.apache.maven.it.MavenITmng4304ProjectDependencyArtifactsTest)
testitMNG4034(org.apache.maven.it.MavenITmng4034ManagedProfileDependencyTest)