Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mcp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
Bundle-Name: Bundle ${project.groupId} : ${project.artifactId}
version: ${versionmask;===;${version_cleanup;${project.version}}}
Bundle-SymbolicName: ${project.groupId}.${project.artifactId}
Bundle-Version: ${version}
Bundle-Version: ${project.version}
Automatic-Module-Name: ${project.groupId}.${project.artifactId}
Import-Package: jakarta.*;resolution:=optional, \
*;
Export-Package: io.modelcontextprotocol.*;version="${version}";-noimport:=true
Export-Package: io.modelcontextprotocol.*;version="${project.version}";-noimport:=true
-noimportjava: true;
-nouses: true;
-removeheaders: Private-Package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,15 @@ public Mono<Void> closeGracefully() {
return Mono.fromRunnable(() -> {
isClosing = true;
logger.debug("Initiating graceful shutdown");
}).then(Mono.defer(() -> {
}).then(Mono.<Void>defer(() -> {
// First complete all sinks to stop accepting new messages
inboundSink.tryEmitComplete();
outboundSink.tryEmitComplete();
errorSink.tryEmitComplete();

// Give a short time for any pending messages to be processed
return Mono.delay(Duration.ofMillis(100));
})).then(Mono.defer(() -> {
return Mono.delay(Duration.ofMillis(100)).then();
})).then(Mono.<Process>defer(() -> {
logger.debug("Sending TERM to process");
if (this.process != null) {
this.process.destroy();
Expand Down