Hi Oleg
> Is this a pissing contest for you or something? If so, I have neither
> time nor inclination to participate.
I am sorry that you think that my only intent is to waste your time. I just
wanted to help solve this issue, because testcase doesn't work for me. I am
not lying, I have no reasons to do that. Believe me.
If you really think that I am just playing and you are wasting your time, then
let it be. Otherwise you may check my attached logs and download my testcase
also with all necessary dependencies from:
http://www.zdila.sk/httpclient-testcase.tar.gz
Then run it like this:
java -cp
.:commons-logging-1.1.1.jar:commons-logging-api-1.1.1.jar:httpclient-4.0-alpha5-SNAPSHOT.jar:httpcore-4.0-beta2-SNAPSHOT.jar:log4j-1.2.15.jar:commons-io-1.4.jar
SocketLockOnPostTestCase
I've tried this with following two configurations wit the same result:
(1)
Linux dev 2.6.18-3-k7 #1 SMP Mon Dec 4 17:23:11 UTC 2006 i686 GNU/Linux
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
(2)
Linux bono 2.6.24-18-generic #1 SMP Wed May 28 20:27:26 UTC 2008 i686
GNU/Linux
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
Please check attached logs.
I hope I didn't upset you again.
Thanks in advance.
Best regards
--
Martin Zdila
CTO
M-Way Solutions Slovakia s.r.o.
Letna 27, 040 01 Kosice
Slovakia
tel:+421-908-363-848
mailto:[EMAIL PROTECTED]
http://www.mwaysolutions.com
xmpp:[EMAIL PROTECTED] (Jabber)
skype:m.zdila
[EMAIL PROTECTED]:~/00$ java -cp
.:commons-logging-1.1.1.jar:commons-logging-api-1.1.1.jar:httpclient-4.0-alpha5-SNAPSHOT.jar:httpcore-4.0-beta2-SNAPSHOT.jar:log4j-1.2.15.jar:commons-io-1.4.jar
SocketLockOnPostTestCase
Executing GET
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.max-redirects': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.route.forced-route': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.route.local-address': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.route.default-proxy': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.conn-manager.timeout': null
DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager -
ThreadSafeClientConnManager.getConnection: HttpRoute[{}->http://www.zdila.sk],
timeout = 0
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - No free
connections [HttpRoute[{}->http://www.zdila.sk]][null]
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Available
capacity: 20 [HttpRoute[{}->http://www.zdila.sk]][null]
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Creating new
connection [HttpRoute[{}->http://www.zdila.sk]]
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.stalecheck': null
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Stale
connection check
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Stale
connection detected
DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection - Connection
closed
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.timeout': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.tcp.nodelay': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.socket.timeout': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.socket.linger': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.socket.buffer-size': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.element-charset': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-line-length': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.element-charset': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-header-count': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-line-length': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-status-line-garbage': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.virtual-host': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.default-headers': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.impl.client.ClientParamsStack - 'http.useragent':
null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.cookie-policy': null
DEBUG [main] org.apache.http.client.protocol.RequestAddCookies - CookieSpec
selected: best-match
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.cookie-datepatterns': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.single-cookie-header': null
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Attempt
1 to execute request
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.wire - >> "POST /post.html HTTP/1.1[EOL]"
DEBUG [main] org.apache.http.wire - >> "Content-Length: 0[EOL]"
DEBUG [main] org.apache.http.wire - >> "Host: www.zdila.sk[EOL]"
DEBUG [main] org.apache.http.wire - >> "Connection: Keep-Alive[EOL]"
DEBUG [main] org.apache.http.wire - >> "[EOL]"
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.headers - >> POST /post.html HTTP/1.1
DEBUG [main] org.apache.http.headers - >> Content-Length: 0
DEBUG [main] org.apache.http.headers - >> Host: www.zdila.sk
DEBUG [main] org.apache.http.headers - >> Connection: Keep-Alive
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.wire - << "HTTP/1.1 200 OK[EOL]"
DEBUG [main] org.apache.http.wire - << "Date: Fri, 06 Jun 2008 11:39:39
GMT[EOL]"
DEBUG [main] org.apache.http.wire - << "Server: Apache/2.0.59 (Unix)
mod_ssl/2.0.59 OpenSSL/0.9.8d DAV/2 PHP/5.1.6[EOL]"
DEBUG [main] org.apache.http.wire - << "Last-Modified: Wed, 04 Jun 2008
07:01:53 GMT[EOL]"
DEBUG [main] org.apache.http.wire - << "ETag: "1e91b-d3-cdb27a40"[EOL]"
DEBUG [main] org.apache.http.wire - << "Accept-Ranges: bytes[EOL]"
DEBUG [main] org.apache.http.wire - << "Content-Length: 211[EOL]"
DEBUG [main] org.apache.http.wire - << "Keep-Alive: timeout=15, max=100[EOL]"
DEBUG [main] org.apache.http.wire - << "Connection: Keep-Alive[EOL]"
DEBUG [main] org.apache.http.wire - << "Content-Type: text/html[EOL]"
DEBUG [main] org.apache.http.headers - << HTTP/1.1 200 OK
DEBUG [main] org.apache.http.headers - << Date: Fri, 06 Jun 2008 11:39:39 GMT
DEBUG [main] org.apache.http.headers - << Server: Apache/2.0.59 (Unix)
mod_ssl/2.0.59 OpenSSL/0.9.8d DAV/2 PHP/5.1.6
DEBUG [main] org.apache.http.headers - << Last-Modified: Wed, 04 Jun 2008
07:01:53 GMT
DEBUG [main] org.apache.http.headers - << ETag: "1e91b-d3-cdb27a40"
DEBUG [main] org.apache.http.headers - << Accept-Ranges: bytes
DEBUG [main] org.apache.http.headers - << Content-Length: 211
DEBUG [main] org.apache.http.headers - << Keep-Alive: timeout=15, max=100
DEBUG [main] org.apache.http.headers - << Connection: Keep-Alive
DEBUG [main] org.apache.http.headers - << Content-Type: text/html
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.handle-redirects': false
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.handle-authentication': false
DEBUG [main] org.apache.http.wire - << "<html>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9]<head>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9][0x9]<title>POST Test</title>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9]</head>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9]<html>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9][0x9]<form method="post"
action="">[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9][0x9][0x9]<input type="text"
value="test"/>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9][0x9][0x9]<input type="submit"
name="submit" value="submit"/>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9][0x9]</form>[\n]"
DEBUG [main] org.apache.http.wire - << "[0x9]</html>[\n]"
DEBUG [main] org.apache.http.wire - << "</html>[\n]"
<html>
<head>
<title>POST Test</title>
</head>
<html>
<form method="post" action="">
<input type="text" value="test"/>
<input type="submit" name="submit" value="submit"/>
</form>
</html>
</html>
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Freeing
connection [HttpRoute[{}->http://www.zdila.sk]][null]
DEBUG [main] org.apache.http.impl.conn.IdleConnectionHandler - Adding
connection at: 1212752379240
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Notifying
no-one, there are no waiting threads
Waiting 60 seconds
Continuing with POST
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.max-redirects': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.route.forced-route': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.route.local-address': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.route.default-proxy': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.conn-manager.timeout': null
DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager -
ThreadSafeClientConnManager.getConnection: HttpRoute[{}->http://www.zdila.sk],
timeout = 0
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Getting free
connection [HttpRoute[{}->http://www.zdila.sk]][null]
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.stalecheck': null
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Stale
connection check
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.virtual-host': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.default-headers': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.impl.client.ClientParamsStack - 'http.useragent':
null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.expect-continue': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.cookie-policy': null
DEBUG [main] org.apache.http.client.protocol.RequestAddCookies - CookieSpec
selected: best-match
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.cookie-datepatterns': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.single-cookie-header': null
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Attempt
1 to execute request
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.wire - >> "POST /post.html HTTP/1.1[EOL]"
DEBUG [main] org.apache.http.wire - >> "Content-Length: 13[EOL]"
DEBUG [main] org.apache.http.wire - >> "Host: www.zdila.sk[EOL]"
DEBUG [main] org.apache.http.wire - >> "Connection: Keep-Alive[EOL]"
DEBUG [main] org.apache.http.wire - >> "[EOL]"
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.headers - >> POST /post.html HTTP/1.1
DEBUG [main] org.apache.http.headers - >> Content-Length: 13
DEBUG [main] org.apache.http.headers - >> Host: www.zdila.sk
DEBUG [main] org.apache.http.headers - >> Connection: Keep-Alive
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.wire - >> "submit=submit"
DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection - Connection
closed
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Closing
the connection.
DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection - Connection
closed
INFO [main] org.apache.http.impl.client.DefaultClientRequestDirector - I/O
exception (org.apache.http.NoHttpResponseException) caught when processing
request: The target server failed to respond
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - The
target server failed to respond
org.apache.http.NoHttpResponseException: The target server failed to respond
at
org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:85)
at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:179)
at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
at
org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:253)
at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
at
org.apache.http.impl.client.DefaultClientRequestDirector.execute(DefaultClientRequestDirector.java:391)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:538)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:473)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:439)
at SocketLockOnPostTestCase.main(SocketLockOnPostTestCase.java:99)
INFO [main] org.apache.http.impl.client.DefaultClientRequestDirector -
Retrying request
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector -
Reopening the direct connection.
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.timeout': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.tcp.nodelay': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.socket.timeout': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.socket.linger': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.socket.buffer-size': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.element-charset': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-line-length': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.element-charset': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-header-count': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-line-length': null
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.connection.max-status-line-garbage': null
DEBUG [main] org.apache.http.impl.client.DefaultClientRequestDirector - Attempt
2 to execute request
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.wire - >> "POST /post.html HTTP/1.1[EOL]"
DEBUG [main] org.apache.http.wire - >> "Content-Length: 13[EOL]"
DEBUG [main] org.apache.http.wire - >> "Host: www.zdila.sk[EOL]"
DEBUG [main] org.apache.http.wire - >> "Connection: Keep-Alive[EOL]"
DEBUG [main] org.apache.http.wire - >> "[EOL]"
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.headers - >> POST /post.html HTTP/1.1
DEBUG [main] org.apache.http.headers - >> Content-Length: 13
DEBUG [main] org.apache.http.headers - >> Host: www.zdila.sk
DEBUG [main] org.apache.http.headers - >> Connection: Keep-Alive
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
~~~ note: now you must wait minutes ~~~
DEBUG [main] org.apache.http.wire - << "HTTP/1.1 400 Bad Request[EOL]"
DEBUG [main] org.apache.http.wire - << "Date: Fri, 06 Jun 2008 11:40:39
GMT[EOL]"
DEBUG [main] org.apache.http.wire - << "Server: Apache/2.0.59 (Unix)
mod_ssl/2.0.59 OpenSSL/0.9.8d DAV/2 PHP/5.1.6[EOL]"
DEBUG [main] org.apache.http.wire - << "Content-Length: 348[EOL]"
DEBUG [main] org.apache.http.wire - << "Connection: close[EOL]"
DEBUG [main] org.apache.http.wire - << "Content-Type: text/html;
charset=iso-8859-1[EOL]"
DEBUG [main] org.apache.http.headers - << HTTP/1.1 400 Bad Request
DEBUG [main] org.apache.http.headers - << Date: Fri, 06 Jun 2008 11:40:39 GMT
DEBUG [main] org.apache.http.headers - << Server: Apache/2.0.59 (Unix)
mod_ssl/2.0.59 OpenSSL/0.9.8d DAV/2 PHP/5.1.6
DEBUG [main] org.apache.http.headers - << Content-Length: 348
DEBUG [main] org.apache.http.headers - << Connection: close
DEBUG [main] org.apache.http.headers - << Content-Type: text/html;
charset=iso-8859-1
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.version': HTTP/1.1
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.handle-redirects': false
DEBUG [main] org.apache.http.impl.client.ClientParamsStack -
'http.protocol.handle-authentication': false
DEBUG [main] org.apache.http.wire - << "<!DOCTYPE HTML PUBLIC "-//IETF//DTD
HTML 2.0//EN">[\n]"
DEBUG [main] org.apache.http.wire - << "<html><head>[\n]"
DEBUG [main] org.apache.http.wire - << "<title>400 Bad Request</title>[\n]"
DEBUG [main] org.apache.http.wire - << "</head><body>[\n]"
DEBUG [main] org.apache.http.wire - << "<h1>Bad Request</h1>[\n]"
DEBUG [main] org.apache.http.wire - << "<p>Your browser sent a request that
this server could not understand.<br />[\n]"
DEBUG [main] org.apache.http.wire - << "</p>[\n]"
DEBUG [main] org.apache.http.wire - << "<hr>[\n]"
DEBUG [main] org.apache.http.wire - << "<address>Apache/2.0.59 (Unix)
mod_ssl/2.0.59 OpenSSL/0.9.8d DAV/2 PHP/5.1.6 Server at www.zdila.sk Port
80</address>[\n]"
DEBUG [main] org.apache.http.wire - << "</body></html>[\n]"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8d DAV/2 PHP/5.1.6
Server at www.zdila.sk Port 80</address>
</body></html>
DEBUG [main] org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager -
Released connection open but not marked reusable.
DEBUG [main] org.apache.http.impl.conn.DefaultClientConnection - Connection
shut down
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Freeing
connection [HttpRoute[{}->http://www.zdila.sk]][null]
DEBUG [main] org.apache.http.impl.conn.tsccm.ConnPoolByRoute - Notifying
no-one, there are no waiting threads
Finished.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]