Skip to content

Commit

Permalink
Set chunked streaming mode. Closes #1227
Browse files Browse the repository at this point in the history
  • Loading branch information
F43nd1r committed Aug 10, 2023
1 parent c193e35 commit 5ec313d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acra-http/src/main/java/org/acra/http/BaseHttpRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ abstract class BaseHttpRequest<T>(private val config: CoreConfiguration, private
// write output - see http://developer.android.com/reference/java/net/HttpURLConnection.html
connection.requestMethod = method.name
connection.doOutput = true
connection.setChunkedStreamingMode(ACRAConstants.DEFAULT_BUFFER_SIZE_IN_BYTES)

// Disable ConnectionPooling because otherwise OkHttp ConnectionPool will try to start a Thread on #connect
System.setProperty("http.keepAlive", "false")
Expand Down

0 comments on commit 5ec313d

Please sign in to comment.