-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cases where Connection Establishment Timed Out is incorrectly log…
…ged (1.6.x) (SimplePool) (#2178) * make simplepool thread names generic (not related to http/1.1 or http/2 * new custom exceptions * update to use new custom exceptions * correctly classify connection-creation timeouts by checking all future statuses (only WAITING means a timeout). Also update to use new custom exceptions * add attributions and license --------- Co-authored-by: Michael Christoff <[email protected]>
- Loading branch information
Showing
7 changed files
with
121 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...java/com/networknt/client/simplepool/exceptions/SimplePoolConnectionClosureException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @author miklish Michael N. Christoff | ||
* | ||
* testing / QA | ||
* AkashWorkGit | ||
* jaydeepparekh1311 | ||
*/ | ||
|
||
package com.networknt.client.simplepool.exceptions; | ||
|
||
public class SimplePoolConnectionClosureException extends RuntimeException { | ||
public SimplePoolConnectionClosureException(String message) { super(message); } | ||
public SimplePoolConnectionClosureException(String message, Exception e) { super(message, e); } | ||
} |
26 changes: 26 additions & 0 deletions
26
...java/com/networknt/client/simplepool/exceptions/SimplePoolConnectionFailureException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @author miklish Michael N. Christoff | ||
* | ||
* testing / QA | ||
* AkashWorkGit | ||
* jaydeepparekh1311 | ||
*/ | ||
|
||
package com.networknt.client.simplepool.exceptions; | ||
|
||
public class SimplePoolConnectionFailureException extends RuntimeException { | ||
public SimplePoolConnectionFailureException(String message) { super(message); } | ||
public SimplePoolConnectionFailureException(String message, Exception e) { super(message, e); } | ||
} |
26 changes: 26 additions & 0 deletions
26
...com/networknt/client/simplepool/exceptions/SimplePoolConnectionLimitReachedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @author miklish Michael N. Christoff | ||
* | ||
* testing / QA | ||
* AkashWorkGit | ||
* jaydeepparekh1311 | ||
*/ | ||
|
||
package com.networknt.client.simplepool.exceptions; | ||
|
||
public class SimplePoolConnectionLimitReachedException extends RuntimeException { | ||
public SimplePoolConnectionLimitReachedException(String message) { super(message); } | ||
public SimplePoolConnectionLimitReachedException(String message, Exception e) { super(message, e); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters