Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows HTTP timeout workaround #577

Merged
merged 3 commits into from
Dec 16, 2014
Merged

Conversation

lukase
Copy link
Contributor

@lukase lukase commented Dec 14, 2014

This patch reduces the poll timeout to one second to make the HTTP server more responsive.

Even though the sockets are set to non-blocking mode, the poller does not wake up before the timeout. The calls to ioctlsocket to succeed. This issue will require further investigation.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) when pulling 6759e52 on lukase:master into 3f007bf on OpenLightingProject:master.

@@ -488,8 +488,14 @@ void *HTTPServer::Run() {

OLA_INFO << "HTTP Server started on port " << m_port;

#ifdef _WIN32
// set a short poll interval since we'd block too long otherwise.
// TODO(LE) investigate why the poller does not wake up on HTTP requests.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've generally gone for TODO(firstname) rather than initials.

@peternewman
Copy link
Member

LGTM

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) when pulling 7ecf725 on lukase:master into 3f007bf on OpenLightingProject:master.

nomis52 added a commit that referenced this pull request Dec 16, 2014
Windows HTTP timeout workaround
@nomis52 nomis52 merged commit b3836a9 into OpenLightingProject:master Dec 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants