Skip to content

Commit 03f8b3d

Browse files
authored
Fix to timeout server stream if remote endpoint isn't available. (#10)
* Fix to timeout server stream if remote endpoint isn't available.
1 parent 9a669db commit 03f8b3d

22 files changed

+440
-248
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.10.x", "3.11.x"]
20-
poetry-version: ["1.4.2"]
19+
python-version: ["3.11.x"]
20+
poetry-version: ["1.5.0"]
2121
os: [ubuntu-latest]
2222
runs-on: ${{ matrix.os }}
2323
steps:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: black
2727

2828
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.2.0
29+
rev: v1.3.0
3030
hooks:
3131
- id: mypy
3232

DEVELOPING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ http://oss.oracle.com/licenses/upl.
99

1010
### Pre-Requisites
1111
* Use `bash` shell
12-
* [pyenv](https://github.com/pyenv/pyenv) version 2.2.4 or later
13-
* [poetry](https://github.com/python-poetry/poetry) version 1.1.13 or later
12+
* [pyenv](https://github.com/pyenv/pyenv) version 2.3.x or later
13+
* [poetry](https://github.com/python-poetry/poetry) version 1.5.x or later
1414

1515
### Project Structure
1616
* `bin` - various shell scripts
@@ -19,18 +19,18 @@ http://oss.oracle.com/licenses/upl.
1919
* `tests` - contains the library test cases in plain Python
2020

2121
### Setup working environment
22-
1. Install Python version 3.10.1
22+
1. Install Python version 3.11.3
2323

24-
```pyenv install 3.10.1```
24+
```pyenv install 3.11.3```
2525

2626
2. Checkout the source from GitHub and change directory to the project root dir
2727

28-
3. Set pyenv local version for this project to 3.10.1
28+
3. Set pyenv local version for this project to 3.11.3
2929

30-
```pyenv local 3.10.1```
31-
4. Set poetry to use python 3.10.1
30+
```pyenv local 3.11.3```
31+
4. Set poetry to use python 3.11.3
3232

33-
```poetry env use 3.10.1```
33+
```poetry env use 3.11.3```
3434
5. Install all the required dependencies using poetry
3535

3636
```poetry install```

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ The Coherence Python Client allows Python applications to act as cache clients t
2020

2121
#### Requirements
2222
* [Coherence CE](https://github.com/oracle/coherence) 22.06.4+ or Coherence 14.1.1.2206.4+ Commercial edition with a configured [gRPCProxy](https://docs.oracle.com/en/middleware/standalone/coherence/14.1.1.2206/develop-remote-clients/using-coherence-grpc-server.html).
23-
* Python 3.10.1
23+
* Python 3.11.x
24+
2425

2526
#### Starting a Coherence Cluster
2627

@@ -56,7 +57,7 @@ import asyncio
5657
async def run_test():
5758

5859
# create a new Session to the Coherence server
59-
session: Session = Session(None)
60+
session: Session = await Session.create()
6061

6162
# create a new NamedCache with key of string|int and value of string|int
6263
cache: NamedCache[str, str|int] = await session.get_cache("test")

examples/aggregators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def do_run() -> None:
3636
5: Hobbit(3, "Peregrin", 28, "Side Kick"),
3737
}
3838

39-
session: Session = Session()
39+
session: Session = await Session.create()
4040
try:
4141
namedMap: NamedMap[int, Hobbit] = await session.get_map("aggregation-test")
4242

examples/basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async def do_run() -> None:
1414
1515
:return: None
1616
"""
17-
session: Session = Session()
17+
session: Session = await Session.create()
1818
try:
1919
namedMap: NamedMap[int, str] = await session.get_map("my-map")
2020

examples/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async def do_run() -> None:
1515
1616
:return: None
1717
"""
18-
session: Session = Session()
18+
session: Session = await Session.create()
1919
try:
2020
namedMap: NamedMap[int, str] = await session.get_map("listeners-map")
2121
await namedMap.put(1, "1")

examples/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def do_run() -> None:
2828
2929
:return: None
3030
"""
31-
session: Session = Session()
31+
session: Session = await Session.create()
3232
try:
3333
homes: List[str] = ["Hobbiton", "Buckland", "Frogmorton", "Stock"]
3434
namedMap: NamedMap[int, Hobbit] = await session.get_map("hobbits")

examples/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def do_run() -> None:
2626
2727
:return: None
2828
"""
29-
session: Session = Session()
29+
session: Session = await Session.create()
3030
try:
3131
namedMap: NamedMap[int, Hobbit] = await session.get_map("hobbits")
3232

examples/python_object_keys_and_values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def do_run() -> None:
2929
3030
:return: None
3131
"""
32-
session: Session = Session()
32+
session: Session = await Session.create()
3333
try:
3434
namedMap: NamedMap[AccountKey, Account] = await session.get_map("accounts")
3535

0 commit comments

Comments
 (0)