Skip to content

skye-pp/ktor-1342-error-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

08d3af9 · Nov 26, 2020

History

3 Commits
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020
Nov 26, 2020

Repository files navigation

ktor-1342-error-sample

Sample code to illustrate Ktor 1.4.2 crashing when sending large responses using Jackson.

You can run it with ./gradlew run.

Succeeding response:

→ http localhost:8080/small
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json; charset=UTF-8
transfer-encoding: chunked

{
    "string": "small string"
}

Failing response:

→ http localhost:8080/large
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json; charset=UTF-8
transfer-encoding: chunked


http: error: ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages