Comments (1)
Method 2 is potentially a problem, but it isn't exposed in OkHttp yet. Regardless, might as well fix it!
https://github.com/JakeWharton/DiskLruCache/pull/41/files
Method 3 is safe because the cache hasn't been exposed to any other threads. The reference is not at risk of concurrent use because it has never been published to another thread.
from okhttp.
Related Issues (20)
- Fails to retry on 503 error HOT 6
- WebSocket Send message after X time of inactivity HOT 1
- Cache support for DnsOverHttps.Builder().post(true) HOT 4
- Route Dispatcher for MockWebServer HOT 4
- Crash because of recursive access of Platform.get() due to logger on exception in initialization HOT 2
- Document WebSocket.MAX_QUEUE_SIZE
- okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR HOT 1
- https://github.com/square/okhttp/blob/master/mockwebserver/README.md#dispatcher HOT 5
- Help HOT 1
- Webview looked wrong HOT 2
- Interceptor's request.body().writeTo(buffer); causes "java.net.ProtocolException: unexpected end of stream" with MultipartBody Post HOT 3
- Kotlin older versions support HOT 4
- Form body encoding changed from + to %20 in 4.12.0 HOT 12
- `java.lang.NoClassDefFoundError: kotlin/enums/EnumEntriesKt` after upgrade from 5.0.0-alpha.11 to 5.0.0-alpha.12 HOT 2
- Crash on android.system.ErrnoException HOT 4
- 5.0.0-alpha.12: java.lang.IllegalStateException: Unable to load /okhttp3/internal/publicsuffix/a.gz resource from the classpath. HOT 15
- Replace dispatcher's default executorService with VirtualThreadPerTaskExecutor HOT 8
- Constructor Injection does not work with mockwebserver3-junit5 HOT 3
- Kotlin Multiplatform - iOS Artifact can't be downloaded HOT 1
- StrictMode error: Missing close() on Sink used in FileSystem.isCivilized() HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okhttp.