Skip to content

Commit 612fbdf

Browse files
committed
Update courier to 0.5.0 and add ssl 4.0.0
Picks up connection hang fixes, SSL fixes, backpressure fixes, and the macOS FD double-close fix from courier 0.5.0. Adds ssl as a direct dependency since the project uses ssl/net types directly. The new lori (transitive through courier) changed _on_received to return ReadAction; updated the mock HTTP server in the test suite to match.
1 parent 0462c63 commit 612fbdf

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

corral.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
},
1111
{
1212
"locator": "github.com/ponylang/courier.git",
13-
"version": "0.4.0"
13+
"version": "0.5.0"
14+
},
15+
{
16+
"locator": "github.com/ponylang/ssl.git",
17+
"version": "4.0.0"
1418
},
1519
{
1620
"locator": "github.com/ponylang/uri.git",

github_rest_api/_test_mock_http_server.pony

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ actor \nodoc\ _MockHTTPConnection
103103
fun ref _connection(): lori.TCPConnection =>
104104
_tcp_connection
105105

106-
fun ref _on_received(data: Array[U8] iso) =>
106+
fun ref _on_received(data: Array[U8] iso): lori.ReadAction =>
107107
_buf.append(consume data)
108108
if _buf.contains("\r\n\r\n") then
109109
let request: String val = (_buf = String).clone()
110110
let response = _responder(request)
111111
_tcp_connection.send(response)
112112
end
113+
lori.KeepReading

0 commit comments

Comments
 (0)