Skip to content

Commit fe1e1ec

Browse files
committed
Merge branch 'development' of https://git01.codeplex.com/casablanca into development
2 parents 632dcee + 4e6cb42 commit fe1e1ec

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ simonlep
1919
jracle
2020
gandziej
2121
adish
22+
LeonidCSIT
2223

2324
AutoDesk Inc.
2425
Cyrille Fauvel (cyrillef)

Release/include/pplx/pplxtasks.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,9 +1997,16 @@ namespace details
19971997
}
19981998
catch(...)
19991999
{
2000-
// This exception could only have come from within the chore body. It should've been caught
2001-
// and the task should be canceled with exception. Swallow the exception here.
2002-
_ASSERTE(_HasUserException());
2000+
// The exception could have come from two places:
2001+
// 1. From the chore body, so it already should have been caught and canceled.
2002+
// In this case swallow the exception.
2003+
// 2. From trying to actually schedule the task on the scheduler.
2004+
// In this case cancel the task with the current exception, otherwise the
2005+
// task will never be signaled leading to deadlock when waiting on the task.
2006+
if (!_HasUserException())
2007+
{
2008+
_CancelWithException(std::current_exception());
2009+
}
20032010
}
20042011
}
20052012

Release/tests/functional/websockets/client/close_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ TEST_FIXTURE(uri_address, close_callback_client_with_reason)
129129
}
130130

131131
// Server sends a close frame (server initiated close)
132-
TEST_FIXTURE(uri_address, close_callback_client_from_server)
132+
TEST_FIXTURE(uri_address, close_callback_client_from_server, "Ignore", "319")
133133
{
134134
std::string body("hello");
135135
test_websocket_server server;

0 commit comments

Comments
 (0)