mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-18 23:54:34 +01:00
todo-mcp unit raises LimitNOFILE to 65536
The 1024 soft limit was exhausted in the 2026-11-16 outage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWXgrX1QxVjqMiz6KFs
This commit is contained in:
parent
be6bf6fc48
commit
e885465f55
@ -7,6 +7,8 @@ Wants=network-online.target
|
||||
ExecStart=%h/.local/lib/todo-mcp/todo_mcp
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
# The default soft limit is 1024; leaked sockets once used every one of them.
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.92+1
|
||||
version: 1.0.93+1
|
||||
|
||||
environment:
|
||||
sdk: ^3.12.2
|
||||
|
||||
19
test/mcp/mcp_unit_test.dart
Normal file
19
test/mcp/mcp_unit_test.dart
Normal file
@ -0,0 +1,19 @@
|
||||
// The unit mcp/install.sh installs must lift the 1024-fd soft limit: the
|
||||
// 2026-11-16 outage ended with the process at 1023 of 1024 fds.
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
test('[T-nofile] the installed unit raises LimitNOFILE', () {
|
||||
final unit = File('mcp/todo-mcp.service').readAsStringSync();
|
||||
expect(unit, matches(RegExp(r'^LimitNOFILE=65536$', multiLine: true)));
|
||||
final service = unit.split('[Service]')[1].split('[Install]').first;
|
||||
expect(service, contains('LimitNOFILE=65536'), reason: 'in [Service]');
|
||||
expect(
|
||||
File('mcp/install.sh').readAsStringSync(),
|
||||
contains(r'install -m 644 "$ROOT/mcp/$UNIT"'),
|
||||
reason: 'install.sh ships this very file',
|
||||
);
|
||||
});
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user