Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Shervin Nourbakhsh
cameo
Commits
5b61caf1
Commit
5b61caf1
authored
Feb 18, 2020
by
legoc
Browse files
Cancel uses request socket
parent
653e792e
Changes
2
Hide whitespace changes
Inline
Side-by-side
cameo-api/src/main/java/fr/ill/ics/cameo/impl/RequesterImpl.java
View file @
5b61caf1
...
...
@@ -177,7 +177,13 @@ public class RequesterImpl {
String
content
=
"cancel"
;
requestMessage
.
add
(
content
);
application
.
tryRequest
(
requestMessage
,
endpoint
);
// Create the request socket. We can create it here because it should be called only once.
RequestSocket
requestSocket
=
application
.
createRequestSocket
(
endpoint
);
requestSocket
.
request
(
requestMessage
);
// Terminate the socket.
requestSocket
.
terminate
();
}
public
boolean
isCanceled
()
{
...
...
cameo-api/src/main/java/fr/ill/ics/cameo/impl/ResponderImpl.java
View file @
5b61caf1
...
...
@@ -137,7 +137,13 @@ public class ResponderImpl {
String
content
=
"cancel"
;
requestMessage
.
add
(
content
);
application
.
tryRequest
(
requestMessage
,
endpoint
);
// Create the request socket. We can create it here because it should be called only once.
RequestSocket
requestSocket
=
application
.
createRequestSocket
(
endpoint
);
requestSocket
.
request
(
requestMessage
);
// Terminate the socket.
requestSocket
.
terminate
();
}
public
boolean
isEnded
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment