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

Fix stepEventLoop timeout handling #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

staging-devin-ai-integration[bot]
Copy link

Fixes morganstanley#436

The timeout parameter in stepEventLoop was being ignored in two scenarios:

  1. When timers exist, the timeout gets overridden
  2. When no timers exist and epoll_wait times out, stepEventLoop doesn't exit

This PR fixes both issues by:

  • Respecting user-provided timeout when timers exist
  • Properly exiting the loop when epoll_wait times out with no events/timers

Link to Devin run: https://staging.itsdev.in/devin/55868dba8e7d4123b53206f464d99a8a

- Respect user-provided timeout when timers exist
- Exit loop when epoll_wait times out with no events/timers

Fixes morganstanley#436
Copy link
Author

staging-devin-ai-integration bot commented Dec 7, 2024

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

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.

Timeout parameter in stepEventLoop gets ignored
0 participants