Simone Bordet
ce04cadb79
Fixes #233 - Add message to idle TimeoutException.
2016-04-01 14:44:26 +02:00
Simone Bordet
e6c2c81bea
Issue #417 (HttpClient: review support for OPTIONS *)
...
Implemented support for OPTIONS * HTTP/1.1 requests.
2016-03-10 16:10:45 +01:00
Simone Bordet
cec3694355
Consistently using BufferUtil, especially clearToFill() and
...
flipToFlush().
2016-02-29 16:31:38 +01:00
Simone Bordet
48c4e08b94
Issue #347 (Avoid sending request using a connection that is idle timing out).
...
Fixed by improving the guard with a timestamp, and checking that the
time elapsed from the last timestamp is enough to prove it is a real
idle timeout.
2016-02-19 11:36:06 +01:00
Joakim Erdfelt
cd39fd84fe
Happy New Year 2016
2016-01-04 14:31:22 -07:00
Simone Bordet
8f4cc73613
484585 - Avoid sending request using a connection that is idle timing out.
...
Rewritten handling of idle timeouts in light of issue #484718 .
2015-12-21 11:47:05 +01:00
Simone Bordet
988e596c71
484585 - Avoid sending request using a connection that is idle timing out.
...
Added guard to avoid that the idle timeout expires just before
sending the request.
Reworked the way idle timeouts are handled, to support the case where
the idle timeout just expired and the request can be tried on a
different connection/channel.
2015-12-18 15:56:31 +01:00
Simone Bordet
0713c17cfa
484683 - FastCGI request idle timeout is handled incorrectly.
...
Added required calls to notIdle() in request/response events, and
fixed the semantic of isOpen().
2015-12-18 15:56:31 +01:00
Simone Bordet
4eef2a347f
Added factory method to create the HttpChannel.
2015-12-18 15:56:31 +01:00
Simone Bordet
8d6206b8c7
Merged branch 'jetty-9.2.x' into 'jetty-9.3.x'.
2015-12-08 22:20:05 +01:00
Simone Bordet
1693dd135d
483857 - jetty-client onComplete isn't called in case of exception in GZIPContentDecoder.
...
Fixed by catching the exceptions and failing the callbacks.
Also using return values from HttpReceiver to compute what to
return to the parser.
2015-12-08 22:10:27 +01:00
Simone Bordet
a1e2d4e8c3
481006 - SSL requests intermittently fail with EOFException when SSL renegotiation is disallowed.
...
Deprecated HttpConnectionOverFCGI constructor just in case someone uses it.
2015-11-04 13:44:40 +01:00
Simone Bordet
0172b68301
481006 - SSL requests intermittently fail with EOFException when SSL renegotiation is disallowed.
...
Fixed by notifying the Connection promise from onOpen() rather than
just after the creation of the connection.
2015-11-04 13:26:27 +01:00
Simone Bordet
473d658842
481385 - Incorrect parsing of END_REQUEST frames.
2015-11-04 10:45:01 +01:00
Simone Bordet
2a765afdc6
Improved javadocs and logging.
2015-11-04 10:45:01 +01:00
Simone Bordet
5cf6629385
480452 - Large downloads via FastCGI proxy keep HttpClient connections active.
...
Fixed by returning false from ResponseContentParser.ResponseParser
.messageComplete(), so that the FastCGI parsing can continue and
parse the END_REQUEST frame.
2015-10-22 20:49:48 +02:00
Simone Bordet
e5e3b05817
Javadocs.
2015-10-22 20:49:48 +02:00
Simone Bordet
69b90ef59b
474888 - HttpClient JMX support.
2015-08-13 15:16:14 +02:00
Greg Wilkins
607239028c
470727 - Thread Starvation of selector wakeups.
...
Changed the CallBack.NonBlocking to a default Callback.isNonBlocking, so that wrapping callbacks can determine if they are NonBlocking or not.
2015-07-22 17:31:54 +10:00
Simone Bordet
d20c7707b7
Merged branch 'jetty-9.2.x' into 'master'.
2015-03-24 20:56:26 +01:00
Simone Bordet
1dc66b72dd
461499 - ConnectionPool may leak connections.
...
Made associate(), disassociate() and abort() atomic operations using
the HttpExchange state to coordinate atomicity.
In this way, it's not possible to associate a HttpChannel and a
HttpExchange if the latter has been aborted.
2015-03-24 16:19:45 +01:00
Simone Bordet
58ea526b56
Notifying client connection's promise from onOpen().
...
The client connection's promise was succeeded in the context of a
call to SelectorManager.newConnection().
This was wrong, since succeeding the promise may trigger the send
of a request *before* the connection is actually linked to the
endPoint and opened.
This change moves the succeeding of the client connection's promise
to the connection onOpen() method.
2015-02-20 18:23:31 +01:00
Simone Bordet
28b9a0927c
Merged branch 'jetty-9.2.x' into 'master'.
2015-02-15 20:51:49 +01:00
Simone Bordet
ffa32dfae7
459963 - Failure writing content of a committed request leaks connections.
...
Fixed by making the logic in HttpSender fail and complete the response
in case of request failure, without taking in consideration whether
the request was committed or aborted.
2015-02-15 20:42:55 +01:00
Greg Wilkins
e1cc5fb487
Merge remote-tracking branch 'origin/master' into jetty-9.3-ewyk
...
Conflicts:
jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannel.java
jetty-server/src/main/java/org/eclipse/jetty/server/QueuedHttpInput.java
jetty-util/src/main/java/org/eclipse/jetty/util/thread/NonBlockingThread.java
2015-01-08 15:21:01 +01:00
Joakim Erdfelt
a3201a3c81
Happy New Year 2015
2015-01-07 17:06:59 -07:00
Joakim Erdfelt
6a0668b7a1
Happy New Year 2015
2015-01-07 17:03:30 -07:00
Simone Bordet
5bed6323c1
Reworked buffer releasing to ensure that it is always executed before
...
fillInterested() is called.
This is needed to avoid race conditions where fillInterested()
triggers a new thread entering onFillable() and acquiring a new buffer
while the previous thread is releasing the previous buffer.
2015-01-02 18:43:07 +01:00
Greg Wilkins
3af9b145a3
Deprecated the AbstractConnection dispatchIO mechanism
2015-01-01 16:18:13 +01:00
Greg Wilkins
853e020210
Merge remote-tracking branch 'origin/master' into jetty-http2
2014-07-16 15:31:48 +10:00
Simone Bordet
745f757552
Guarded calls to LOG.debug() with if (LOG.isDebugEnabled()) to reduce allocation of varargs Object[].
2014-07-15 18:49:14 +02:00
Greg Wilkins
4d2a580c2c
439375 preferred rfc7231 format is mime;charset=lowercase-9
2014-07-11 17:56:08 +10:00
Simone Bordet
2608af8f0d
Merged branch 'origin/master' into 'jetty-http2'.
2014-06-26 11:54:50 +02:00
Simone Bordet
f2f19ee3ba
Improved changes introduced by a746d78
.
2014-06-26 10:08:13 +02:00
Greg Wilkins
a746d78951
438079 435322 Fixed Iterating Callback fail handling and removed per send instance
2014-06-25 19:20:03 +02:00
Simone Bordet
66f3913527
Merged branch 'origin/master' into 'jetty-http2'.
2014-06-25 12:34:19 +02:00
Simone Bordet
3ff4195dbc
Guarded calls to LOG.debug() with if (LOG.isDebugEnabled()) to reduce allocation of varargs Object[].
2014-06-25 12:26:45 +02:00
Greg Wilkins
272e1d8da5
Refactored HttpChannel to not have direct HttpParser dependency
2014-06-17 00:02:50 +02:00
Greg Wilkins
bbd61f8e19
Multiple mixed in changes and improvements
...
Simplified HttpParser as per rfc7230
implemented local/remote hpack max table sizes
2014-06-11 15:16:40 +02:00
Simone Bordet
244158ee3e
Introduced class ByteBufferPool.Lease to keep track of buffers with
...
associated information of whether they have been borrowed from the
ByteBufferPool or not.
2014-06-06 16:24:09 +02:00
Simone Bordet
65e13ce08f
Fixed response status message string, that was trimmed after the first
...
space.
2014-05-21 17:44:56 +02:00
Simone Bordet
7745e8b6c1
435338 - Incorrect handling of asynchronous content.
...
Return values from parser and parser callbacks must not be ignored.
2014-05-20 22:46:09 +02:00
Simone Bordet
f225af318b
435223 - High cpu usage in FCGIHttpParser.parseContent(ResponseContentParser.java:314).
...
Since often FastCGI servers do not send the Status header if the
response is 200, the parser is now initialized with response code 200.
2014-05-20 22:46:09 +02:00
Simone Bordet
8f9e73df72
Introduced parameter sendStatus200 to optionally send the Status
...
header when the response code is 200.
2014-05-20 22:46:09 +02:00
Simone Bordet
2a4cee5db6
Always store HTTP fields to implement logic to detect the content mode.
2014-05-20 22:46:09 +02:00
Simone Bordet
c4f7d38e86
Javadocs and comments.
2014-05-20 22:46:08 +02:00
Simone Bordet
4234048d81
Only generating Status header if the response code is greater than zero.
2014-05-20 22:46:08 +02:00
Simone Bordet
4f67993b61
Simplified/Improved handling of parser return values.
2014-05-20 22:46:08 +02:00
Simone Bordet
724fb7d6d3
Removed TODO and improved logging.
2014-05-20 22:46:08 +02:00
Simone Bordet
7918a58c71
Using Callback.Adapter.INSTANCE to avoid unneeded allocations.
2014-05-19 18:49:17 +02:00