itnoles

    itnoles

    3 years ago
    HttpUrlConnection default Chunk size is 1024 (1 K)
    d

    Derk-Jan Karrenbeld

    3 years ago
    No it's 4096
    itnoles

    itnoles

    3 years ago
    Weird, setChunkedStreamingMode(0) in Android is 1024
    d

    Derk-Jan Karrenbeld

    3 years ago
    This screenshot is from android-27 source
    Are you on fuel 2.0.0? Because before that I think it still uses some arbitrary buffer size of 1024 😛
    itnoles

    itnoles

    3 years ago
    Hehh
    setChunkedStreamingMode(0) use DEFAULT_CHUNK_SIZE 🙂
    d

    Derk-Jan Karrenbeld

    3 years ago
    Yes
    DEFAULT_CHUNK_SIZE is 4096 in android27 and 28 🙂
    itnoles

    itnoles

    3 years ago
    Noticed from libcore
    Older Android uses 1024
    d

    Derk-Jan Karrenbeld

    3 years ago
    Yes
    COuld be 😛
    itnoles

    itnoles

    3 years ago
    confirmed, ICS uses 1024