Skip to content

Commit add035c

Browse files
committed
remove the word hang
1 parent 66ac850 commit add035c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Examples/ServiceLifecycle/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This example demonstrates a Swift Lambda function that uses ServiceLifecycle to
99
- **HTTP API Gateway**: HTTP endpoint to invoke the Lambda function
1010
- **VPC**: Custom VPC with public subnets for Lambda/NAT Gateway and private subnets for RDS
1111
- **Security**: SSL/TLS connections with RDS root certificate verification, secure networking with security groups
12-
- **Timeout Handling**: 3-second timeout mechanism to prevent database connection hangs
12+
- **Timeout Handling**: 3-second timeout mechanism to prevent database connection freeze
1313
- **Secrets Manager**: Secure credential storage and management
1414

1515
For detailed infrastructure information, see `INFRASTRUCTURE.md`.
@@ -22,7 +22,7 @@ The Lambda function demonstrates several key concepts:
2222

2323
2. **SSL/TLS Security**: Connections to RDS use SSL/TLS with full certificate verification using region-specific RDS root certificates.
2424

25-
3. **Timeout Protection**: A custom timeout mechanism prevents the function from hanging when the database is unreachable (addresses PostgresNIO issue #489).
25+
3. **Timeout Protection**: A custom timeout mechanism prevents the function from freezing when the database is unreachable (addresses PostgresNIO issue #489).
2626

2727
4. **Structured Response**: Returns a JSON array of `User` objects, making it suitable for API integration.
2828

@@ -143,7 +143,7 @@ curl "$API_ENDPOINT"
143143

144144
The function will:
145145
1. Connect to the PostgreSQL database using SSL/TLS with RDS root certificate verification
146-
2. Query the `users` table with a 3-second timeout to prevent hanging
146+
2. Query the `users` table with a 3-second timeout to prevent freezing
147147
3. Log the results for each user found
148148
4. Return a JSON array of `User` objects with `id` and `username` fields
149149

@@ -243,7 +243,7 @@ Ensure you have:
243243
- `samconfig.toml`: SAM configuration file
244244
- `deploy.sh`: Deployment script
245245
- `Sources/Lambda.swift`: Swift Lambda function code with ServiceLifecycle integration
246-
- `Sources/Timeout.swift`: Timeout utility to prevent database connection hangs
246+
- `Sources/Timeout.swift`: Timeout utility to prevent database connection freezes
247247
- `Sources/RDSCertificates/RootRDSCert.swift`: RDS root certificate management
248248
- `Sources/RDSCertificates/us-east-1.swift`: US East 1 region root certificate
249249
- `Sources/RDSCertificates/eu-central-1.swift`: EU Central 1 region root certificate

0 commit comments

Comments
 (0)