Skip to content

Image Download Timeout Hardcoded to 60s #136

@CyberSecDef

Description

@CyberSecDef

Problem

In novelforge/llm/image.py line 115:

img_resp = requests.get(image_url, timeout=60, stream=True)

The configurable IMAGE_TIMEOUT is used for image generation (line 58) but not for downloading the result. Large images on slow connections could exceed 60s even when the user has set a higher timeout.

Recommended Fix

img_resp = requests.get(image_url, timeout=config.IMAGE_TIMEOUT, stream=True)

Metadata

Metadata

Labels

bugSomething isn't workingpriority:mediumMedium priority

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions