Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/AsyncContinuation.java @ 919:dd6b1f079634
remove AsyncContinuation._lastAsyncListeners
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sun, 09 Oct 2016 03:45:31 -0600 |
| parents | 7b62446899c6 |
| children | 3268ddf919d4 |
comparison
equal
deleted
inserted
replaced
| 918:7b62446899c6 | 919:dd6b1f079634 |
|---|---|
| 74 private static final int __UNCOMPLETED=8; // Request is completable | 74 private static final int __UNCOMPLETED=8; // Request is completable |
| 75 private static final int __COMPLETED=9; // Request is complete | 75 private static final int __COMPLETED=9; // Request is complete |
| 76 | 76 |
| 77 /* ------------------------------------------------------------ */ | 77 /* ------------------------------------------------------------ */ |
| 78 protected AbstractHttpConnection _connection; | 78 protected AbstractHttpConnection _connection; |
| 79 private List<AsyncListener> _lastAsyncListeners; | |
| 80 private List<AsyncListener> _asyncListeners; | 79 private List<AsyncListener> _asyncListeners; |
| 81 private List<ContinuationListener> _continuationListeners; | 80 private List<ContinuationListener> _continuationListeners; |
| 82 | 81 |
| 83 /* ------------------------------------------------------------ */ | 82 /* ------------------------------------------------------------ */ |
| 84 private int _state; | 83 private int _state; |
| 281 switch(_state) | 280 switch(_state) |
| 282 { | 281 { |
| 283 case __IDLE: | 282 case __IDLE: |
| 284 _initial=true; | 283 _initial=true; |
| 285 _state=__DISPATCHED; | 284 _state=__DISPATCHED; |
| 286 if (_lastAsyncListeners!=null) | |
| 287 _lastAsyncListeners.clear(); | |
| 288 if (_asyncListeners!=null) | 285 if (_asyncListeners!=null) |
| 289 _asyncListeners.clear(); | 286 _asyncListeners.clear(); |
| 290 else | |
| 291 { | |
| 292 _asyncListeners=_lastAsyncListeners; | |
| 293 _lastAsyncListeners=null; | |
| 294 } | |
| 295 return true; | 287 return true; |
| 296 | 288 |
| 297 default: | 289 default: |
| 298 throw new IllegalStateException(this.getStatusString()); | 290 throw new IllegalStateException(this.getStatusString()); |
| 299 } | 291 } |
