Skip to content

Conversation

@jimklimov
Copy link
Member

@jimklimov jimklimov commented Jan 7, 2026

Follow-up to issue #3207 and #3219 testing, experimented and iterated with a NUT for Windows deployment and specifically NUT CGI under MS IIS as the web server.

There currently remains a problem with upsset.cgi(.exe) timing out, apparently either fgetc() never returns, or does not return EOF, when receiving an HTTP POST payload.

  • UPDATE: fixed/worked-around now

@jimklimov jimklimov added this to the 2.8.5 milestone Jan 7, 2026
@jimklimov jimklimov added enhancement documentation Windows Windows-not-on-par-with-POSIX Aspect of Windows builds known to be dysfunctional compared to POSIX builds; fix needed to be on par portability We want NUT to build and run everywhere possible CGI labels Jan 7, 2026
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 7, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 7, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
@jimklimov jimklimov force-pushed the issue-3207 branch 2 times, most recently from 9c8466e to 28cc920 Compare January 8, 2026 09:27
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
@jimklimov
Copy link
Member Author

Now upsset.cgi works also on IIS, although with a hacky workaround. I don't quite like or understand it, would prefer a more deterministic and clean solution, but this one at least works. And well, MS...

@jimklimov jimklimov force-pushed the issue-3207 branch 2 times, most recently from 4b82441 to 89b512d Compare January 8, 2026 09:51
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ver preparation for NUT CGI [networkupstools#3207]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…I on a web server

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…y in the doc too

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…s know loading is completed and not stalled

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…UT favicon with CGI HTML pages

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…GI on all platforms [networkupstools#3207]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…3207]

...not sure if select() works as expected here,
but NUT CGI under IIS keeps asking for login...

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… POST data from STDIN from client code into common code [networkupstools#3219]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…select() to work [networkupstools#3219]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…oncept and does not apply to STDIN [networkupstools#3219]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… CONTENT_LENGTH, and on IIS truncate it by a byte; in upsset add a sacrificial sentinel into each HTML FORM [networkupstools#3219]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…tial final parsearg() of leftovers [networkupstools#3219]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…l data as JSON docs [networkupstools#3171]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…mode, so ftell()/fseek() work predictably [networkupstools#3219]

Fix rewinding FOREACHUPS command to the correct byte location on WIN32 (or other platforms with CR vs CRLF issues).

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 10, 2026
…ample.in, NEWS.adoc, UPGRADING.adoc: introduced `@NUT_UPSSTATS_TEMPLATE@` magic token that HTML templates must start with [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ample.in, NEWS.adoc, UPGRADING.adoc: introduced `@NUT_UPSSTATS_TEMPLATE@` magic token that HTML templates must start with [networkupstools#3249, networkupstools#3252]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…uts [networkupstools#3219]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 10, 2026
…ing from callers [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 10, 2026
…ing from callers [networkupstools#3249]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov force-pushed the issue-3207 branch 2 times, most recently from e13b9be to 50ade3a Compare January 10, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CGI documentation enhancement portability We want NUT to build and run everywhere possible Windows Windows-not-on-par-with-POSIX Aspect of Windows builds known to be dysfunctional compared to POSIX builds; fix needed to be on par

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants