Enhancement: Check ComfyUI server cache before image upload#2468
Enhancement: Check ComfyUI server cache before image upload#2468rbeurskens wants to merge 2 commits intoAcly:mainfrom
Conversation
… if the server closes the connection on a cache hit before the client sends the PUT payload.
|
I've never encountered the "Unable to write" error before, does that happen all the time for you or with particular image size? Which OS? I don't think an additional HEAD request is a necessarily good trade of, now every upload needs an extra round trip, and the not-cached case is probably far more common. I consider sending some of the upload data even if it's cached okay, but it would require a way to selectively ignore this particular error, which might be difficult if Qt doesn't return the actual response and 200 status code. Since I can't reproduce it, it's hard to tell. Cleaner solution might be to start the PUT with a |
|
For me, consistent from consecutive prompts using one or more of the same source image(s) when using a custom ComfyUI server (latest) running on Kubuntu LTS 24.04 on a 2012 era PC (MSI Z77 GD65 mainboard, i7 3770K, 16GB). Krita running on Windows 10 12gen i7,16GB. Images were not really large (this one was ~1MB ) |
|
Might just have to do with latency, I mostly test local with Krita & Comfy running on the same machine. Note that the |
|
Yes, probably. I never had this when running the local managed server. After all, the loopback likely doesn't have this issue. But with an actual remote it's different. (maybe even worse with a cloud server instead of one in the LAN) The problem is that, as you also said, |
Should solve #2467
Also saves some network traffic by not sending the payload if HEAD returned 200. (in contrast to PUT)