refactor(mcp) Increase the server stdio shutdown timeout
This commit is contained in:
parent
9b6a0b537b
commit
47b09165c5
2 changed files with 1 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ import java.util.List;
|
|||
import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ public class StdioServerTransport implements McpTransport {
|
|||
// First complete the sinks to stop processing
|
||||
inboundSink.tryEmitComplete();
|
||||
outboundSink.tryEmitComplete();
|
||||
return Mono.delay(Duration.ofMillis(100));
|
||||
return Mono.delay(Duration.ofMillis(200));
|
||||
})).then(Mono.fromRunnable(() -> {
|
||||
try {
|
||||
// Dispose schedulers first
|
||||
|
|
|
|||
Loading…
Reference in a new issue