Joakim Erdfelt
b954a2dad5
Unit testing upgrades
...
+ Using jetty-test-helper 3.0
+ Adding jetty-perf-helper (replacement for BenchmarkHelper)
+ Adding JmxServiceConnection to jetty-deploy (formerly part of
jetty-test-helper)
2015-07-23 12:16:50 -07:00
Greg Wilkins
c9c2ebc532
473266 - Better handling of MultiException
...
Add extra exceptions as suppressed exceptions
2015-07-23 22:50:20 +10:00
Greg Wilkins
ac8316756c
473322 - GatherWrite limit handling
2015-07-23 11:32:28 +10:00
Greg Wilkins
30a99ddcf4
473266 - init MultiException cause
2015-07-23 09:02:52 +10:00
Greg Wilkins
232b4a4680
473006 - Encode addPath in URLResource
2015-07-22 13:01:21 +10:00
Greg Wilkins
d8c94ea27b
Revert "473243 Delay resource close for async default content"
...
This reverts commit e4bf5d888c
.
Wrong commit message
2015-07-22 13:00:05 +10:00
Greg Wilkins
e4bf5d888c
473243 Delay resource close for async default content
2015-07-22 12:34:56 +10:00
Simone Bordet
2c26e82fea
469936 - Remove usages of SpinLock.
...
Causes high CPU usage when contended, and the JVM can do better with
its own spin lock and biased locking.
2015-06-11 15:36:20 +02:00
Greg Wilkins
4472b614b9
468747 - XSS vulnerability in HttpSpiContextHandler
2015-05-29 20:12:57 +10:00
Greg Wilkins
c9be4d10fc
468008 Scanner ignores directory length
2015-05-23 08:41:56 +10:00
Greg Wilkins
e5fac304b4
467276 NPE protection in SslContextFactory
...
Also-by: P.Ottlinger<phil@edojo.org>
2015-05-14 08:32:12 +10:00
Jan Bartel
6ebfd88323
465360 URLResource.addPath should use _useCaches setting to create new Resource
2015-04-24 14:51:29 +10:00
Jan Bartel
ff8eeae982
465359 Resource.newResource(String res, boolean useCache) does not use useCache argument
2015-04-24 14:29:56 +10:00
Greg Wilkins
aa3c881eec
464869 PathResource.addPath allows absolute resolution.
...
Added test harness to demonstrate
Applied suggested fix - which fixes the test.
Need to analyse why this every worked, why it was not detected and what are the ramifications in 9.2.x and 9.3.x releases
2015-04-20 11:34:36 +10:00
Simone Bordet
79e74c64e1
Introduced a generic Sweeper.
...
The Sweeper class periodically sweeps resources added to it.
Currently used to check whether the HttpClient code does not leak
connections.
2015-03-20 00:42:24 +01:00
Simone Bordet
a13a55e242
Introduced LeakDetector.id() to be consistent in logging the resource ID.
2015-03-07 22:32:59 +01:00
Joakim Erdfelt
74ee154bb1
Cleaning up LeakTrackingByteBufferPool / LeakDetector
...
+ Making use of LeakTrackingByteBufferPool more consistent
+ Using MappedByteBufferPool.Tagged where appropriate in test cases
+ Adding leak count tracking to LeakDetector
+ Adding leak count tracking to LeakTrackingByteBufferPool
+ Renaming websocket LeakTrackingBufferPool to
LeakTrackingBufferPoolRule to reflect junit @Rule usage
+ Making websocket LeakTrackingBufferPoolRule always use
MappedByteBufferPool.Tagged
+ Fixed various grammar concerns
2015-03-06 14:27:58 -07:00
Joakim Erdfelt
ac08e4ded7
461623 - BufferUtil.writeTo does not update position consistently
...
+ Making position update properly
+ Marking internal method as private
2015-03-06 14:20:59 -07:00
Greg Wilkins
2c3a4869ab
Tagged buffers from MappedByteBufferPool
2015-03-06 11:47:56 +11:00
Joakim Erdfelt
32de92f7d6
Updating Leak Tracking/Detecting behavior.
...
+ NOISY logging is now configurable at JVM startup
+ Improved javadoc in LeakDetector
2015-03-05 11:06:15 -07:00
Greg Wilkins
e8b6902b16
SpinLock cleanup of HttpExchange
2015-03-05 18:32:17 +11:00
Joakim Erdfelt
4df5647f6d
460642 - HttpParser error 400 can expose previous buffer contents in HTTP status reason message
2015-02-23 14:44:53 -07:00
Joakim Erdfelt
5ecc9b8a36
Adding some tests to prove out inherited lifecycle listener behavior
2015-02-19 14:43:24 -07:00
Greg Wilkins
2b2a70a93a
459845 Support upgrade
...
Added the concept of UpgradeFrom and UpgradeTo connections that support
transferring a buffer with content before opening new connection.
Aded EndPoint.update method as utility
2015-02-13 11:41:18 +11:00
Simone Bordet
2cd26725e1
Fixed bug in onSuccess() where the count was decreased to zero on the
...
first call to succeeded() due to not returning after the
successful compareAndSet().
2015-02-12 14:20:09 +01:00
Simone Bordet
12e2f9e6c8
459542 - AsyncMiddleManServlet race condition on first download content.
...
Fixed the race condition by submitting a zero length buffer to write
from onWritePossible() which will succeed the callback without
causing races.
2015-02-10 13:10:57 +01:00
Simone Bordet
1274bb9e43
Implemented dump() to print out the scheduler thread stack trace.
2015-02-09 12:13:18 +01:00
Joakim Erdfelt
56ff29568f
458849 - org.eclipse.jetty.util.Uptime.DefaultImpl() not available on GAE
2015-01-30 11:45:06 -07:00
Simone Bordet
159884a9c1
458495 - CompletableCallback may not notify failures.
...
Fixed by improving the state machine, and calling abort() also in
case of synchronous failures.
2015-01-27 10:54:29 +01:00
Greg Wilkins
7e608a70eb
458209 Length check for HttpMethod MOVE lookahead
2015-01-23 11:04:33 +01:00
Greg Wilkins
c5fbb185de
457893 Close temp jar resource
2015-01-22 16:23:54 +01:00
Joakim Erdfelt
6a0668b7a1
Happy New Year 2015
2015-01-07 17:03:30 -07:00
Greg Wilkins
3270af81e8
456956 Reduce ThreadLocal.remove() weak reference garbage
2015-01-07 19:53:30 +01:00
Simone Bordet
3abfbe26b3
Using the provider string when creating the SSLContext in case of no
...
keystore.
2015-01-06 17:30:03 +01:00
Greg Wilkins
451e27e736
454291 Added busy threads JMX attribute to QueuedThreadPool
...
Also-by: Tomasz Nurkiewicz <nurkiewicz@gmail.com>
Signed-off-by: Greg Wilkins <gregw@intalio.com>
2014-12-31 16:32:58 +01:00
Simone Bordet
ae3e491f26
453386 - Jetty not working when configuring QueuedThreadPool with minThreads=0.
...
Fixed by properly initializing the queue capacity and by making sure
that if minThreads=0 at least one thread is always started to handle
the job.
2014-11-27 11:32:59 +01:00
Joakim Erdfelt
07647e8a5f
443652 - Remove dependency on java.lang.management classes
...
* Created safer Uptime singleton for use
* Removed direct references to java.lang.management from
- Server.java
- Log.java
- AbstractLifeCycle.java
2014-11-25 08:25:35 -07:00
Greg Wilkins
d1ead3dcd6
improved javadoc
2014-11-05 17:53:46 +11:00
Greg Wilkins
63d6754ea1
449594 Handle ArrayTrie overflow with false return
2014-11-05 10:32:10 +11:00
Greg Wilkins
8eab088a35
443550 improved FileResource encoded alias checking
2014-10-30 14:12:43 +11:00
Greg Wilkins
921381eb7c
448156 Fixed INACTIVE race in IteratingCallback
...
More code cleanups and review
2014-10-22 22:43:24 +11:00
Greg Wilkins
679b8d30f8
448156 Fixed INACTIVE race in IteratingCallback
...
Additional cleanups of ICB code
2014-10-22 16:40:28 +11:00
Greg Wilkins
34782005b2
448156 Fixed INACTIVE race in IteratingCallback
...
Simplified the ICB statemachine with the addition of a lock state to handle the case of iterate() called while a
previous process() iteration is just existing.
Also added the CALLED state to replace INACTIVE when a callback is called before PENDING state entered.
renamed INACTIVE to IDLE
2014-10-22 14:06:40 +11:00
Jan Bartel
592265c21f
447627 MultiPart file always created when "filename" set in Content-Disposition
2014-10-22 12:56:59 +11:00
Greg Wilkins
8bf6b2c62c
444031 Ensure exceptions do not reduce threadpool below minimum
...
improved the suppression of warnings
2014-10-17 14:29:40 +11:00
Simone Bordet
90e9cfc535
447381 - Disable SSLv3 by default.
...
Excluded by default also SSLv2Hello.
2014-10-16 19:46:33 +02:00
Simone Bordet
aea5070e51
447381 - Disable SSLv3 by default.
...
Excluded by default SSL, SSLv2 and SSLv3.
2014-10-16 17:53:52 +02:00
Jan Bartel
1729fb045c
446923 SharedBlockingCallback does not handle connector max idle time of Long.MAX_VALUE; BlockerTimeoutException not serializable
2014-10-15 18:17:01 +11:00
Greg Wilkins
8a555e669a
444031 Ensure exceptions do not reduce threadpool below minimum
2014-10-15 11:22:53 +11:00
Joakim Erdfelt
1f543e9983
System.lineSeparator exists
2014-10-08 11:02:13 -07:00