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

Do not hang when using stack API in the wrong way. (Trac #8) #8

Open
edsiper opened this issue Jan 28, 2014 · 0 comments
Open

Do not hang when using stack API in the wrong way. (Trac #8) #8

edsiper opened this issue Jan 28, 2014 · 0 comments

Comments

@edsiper
Copy link
Member

edsiper commented Jan 28, 2014

If for some reason a callback misses a final response->end(dr..) call or it do not put the event to sleep, when the callback returns will let the server in an infinite loop.

This do not affect a production environment as is noticed in the development environment, but bother too much trying to kill the service.

Proposed solution: add a new flag into the duda_request_t context specifying if a 'next step or status' have been done. This flag should be modified by response->end(), response->finalize() and response->wait() calls.

Migrated from http://bugs.duda.io/ticket/8

{
    "status": "new", 
    "changetime": "2014-01-02T19:50:33", 
    "description": "If for some reason a callback misses a final response->end(dr..) call or it do not put the event to sleep, when the callback returns will let the server in an infinite loop. \n\nThis do not affect a production environment as is noticed in the development environment, but bother too much trying to kill the service.\n\nProposed solution: add a new flag into the duda_request_t context specifying if a 'next step or status' have been done. This flag should be modified by response->end(), response->finalize() and response->wait() calls.", 
    "reporter": "edsiper", 
    "cc": "", 
    "resolution": "", 
    "_ts": "1388692233461102", 
    "component": "API", 
    "summary": "Do not hang when using stack API in the wrong way.", 
    "priority": "major", 
    "keywords": "", 
    "version": "", 
    "time": "2014-01-02T19:50:33", 
    "milestone": "", 
    "owner": "edsiper", 
    "type": "defect"
}
@edsiper edsiper added this to the DST-2 milestone Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant