Skip to content

Ensure okhttp sender dispatchers are bound and handle RejectedExecutionException #8316

@jack-berg

Description

@jack-berg

#8276 but for okhttp dispatchers, which are default to an unbounded thread pool:

public static Dispatcher newDispatcher() {
return new Dispatcher(
new ThreadPoolExecutor(
0,
Integer.MAX_VALUE,
60,
TimeUnit.SECONDS,
new SynchronousQueue<>(),
createThreadFactory("okhttp-dispatch")));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions