Commit 490d4ee
committed
fix: replace threading.Lock with anyio.Lock for Ray deployment compatibility
- Replace threading.Lock() with anyio.Lock() in StreamableHTTPSessionManager
- This resolves serialization issues when deploying StreamableHTTP services with Ray
- threading.Lock objects cannot be pickled/serialized, causing deployment failures
- anyio.Lock provides equivalent functionality while being fully serializable
- Update lock usage from 'with' to 'async with' for proper async context1 parent 6566c08 commit 490d4ee
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| |||
0 commit comments