Skip to content

Commit 40507a6

Browse files
authored
cherry-pick fix for timer stack overflow (#489)
1 parent e5a7cac commit 40507a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

thread/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace photon
3535
// it has a `stack_size`, and the `on_timer` is invoked within the thread's context.
3636
// The timer object is deleted automatically after it is finished.
3737
Timer(uint64_t default_timeout, Entry on_timer, bool repeating = true,
38-
uint64_t stack_size = 1024 * 64)
38+
uint64_t stack_size = DEFAULT_STACK_SIZE)
3939
{
4040
_on_timer = on_timer;
4141
_default_timeout = default_timeout;

0 commit comments

Comments
 (0)