`call.respond(LocalFileContent(file))` I wonder if...
# ktor
h
call.respond(LocalFileContent(file))
I wonder if its possible to check whether client received whole file or cancelled ?
o
@cy
c
@hinst there is no robust way to do that however in most cases it should be ChannelWriteException thrown that could be caught and handled. You also can try to use respond with timeout (to ensure that the connection hadn't get stuck,
withTimeout(...) { respond(file) }
however it is not so cheap as it requires timeout scheduling