Commit Graph

23 Commits

Author SHA1 Message Date
Yeuoly 33c023b375 refactor(plugin_manager): enhance HTTP client timeout handling in ser… (#385)
* refactor(plugin_manager): enhance HTTP client timeout handling in serverless runtime with DialContext

- Updated the HTTP client in the ServerlessPluginRuntime to use a context-aware DialContext for better timeout management.
- Removed the write timeout option from the HTTP request builder, streamlining the request handling process.
- Improved connection handling by setting write deadlines based on the PluginMaxExecutionTimeout.

This change enhances the reliability of network operations within the serverless runtime environment.

* refactor(plugin_manager): remove write deadline setting in serverless runtime connection initialization

- Eliminated the write deadline setting from the connection initialization in the ServerlessPluginRuntime.
- This change simplifies the connection handling process and aligns with the recent enhancements to timeout management.

This update contributes to a more streamlined and efficient network operation within the serverless environment.

* refactor(plugin_manager): adjust HTTP client timeout settings in serverless runtime

- Modified the HTTP client configuration in the ServerlessPluginRuntime to set the TLS handshake timeout based on PluginMaxExecutionTimeout.
- Retained the IdleConnTimeout setting to ensure consistent connection management.

This update improves the timeout handling for secure connections, enhancing overall network reliability in the serverless environment.
2025-07-09 17:43:24 +08:00
Yeuoly 1e260eedf4 refactor: using length-prefixed chunking for Backwards invocations (#342)
- Adjusted the header byte manipulation in chunking functions to correctly use the first four bytes for data length.
- Modified the HTTP request streaming function to include the length-prefixed option for improved data handling.
2025-06-11 16:01:53 +08:00
Yeuoly ac6441746d feat: add length-prefixed HTTP chunking functionality (#341)
- Introduced new constants for HTTP option types to improve code readability and maintainability.
- Updated existing HTTP option functions to utilize the new constants.
- Implemented line-based and length-prefixed chunking methods for improved data processing in HTTP requests.
- Added comprehensive tests for chunking functionality to ensure reliability and correctness.
2025-06-11 14:45:21 +08:00
Yeuoly 052cd0c410 fix: remove redundant Content-Type header for payloadReader in HTTP request builder (#320) 2025-05-30 18:49:19 +08:00
Yeuoly f8914412d9 fix: support serverless plugin management with execution timeout (#318)
- Added `pluginMaxExecutionTimeout` to `PluginManager` for configurable execution limits.
- Updated `ServerlessPluginRuntime` to utilize the new timeout setting in HTTP requests.
- Refactored AWSPluginRuntime references to ServerlessPluginRuntime for consistency across the codebase.
2025-05-30 18:08:24 +08:00
Junious_Cheng b27beb5a3d fix: remove duplicate code (#75) 2025-03-07 17:58:41 +08:00
Yeuoly 6444214942 Revert "Revert: refactor: serverless connector This reverts commit b413e6c96546cc50b1dbc94731d24f5c51e7a455."
This reverts commit d08d78e8b2.
2025-01-14 16:31:13 +08:00
Yeuoly d08d78e8b2 Revert: refactor: serverless connector This reverts commit b413e6c965. 2025-01-09 14:24:10 +08:00
Yeuoly 8874762c68 fix: adapter to new serverless connector 2025-01-08 18:31:10 +08:00
Yeuoly b413e6c965 refactor: serverless connector 2025-01-08 16:57:21 +08:00
Yeuoly 407fb941ca feat: support for pprof 2024-12-04 14:15:16 +08:00
Yeuoly 26fd94ebcd refactor: convert snakecase to camelcase 2024-11-12 21:24:41 +08:00
Yeuoly 9071e9c5b0 fix: serverless connector 2024-09-12 02:05:25 +08:00
Yeuoly cdfdbad7eb feat: validate json schema 2024-09-10 20:54:34 +08:00
Yeuoly b397e73e95 feat: support aws installer 2024-09-10 14:52:21 +08:00
Yeuoly 277ce2081f refactor: local plugin cwd 2024-09-04 17:06:28 +08:00
Yeuoly 13ab7d7f1f fix: unmarshal map 2024-08-30 13:12:28 +08:00
Yeuoly ccf1b6e1d2 fix: backwards invocation can not unmarshal nil map 2024-08-29 21:51:34 +08:00
Yeuoly 7322d50a5d refactor 2024-08-29 21:19:13 +08:00
Yeuoly 366aefcf06 feat: aws lambda init environment impl 2024-08-15 17:24:44 +08:00
Yeuoly d1ab9878f5 feat: backwards invoke llm 2024-07-29 22:06:23 +08:00
Yeuoly b1755f3fea fix: backwards http requests 2024-07-29 18:58:05 +08:00
Yeuoly c9dc8aadef feat: invoke tool and models 2024-07-19 17:45:00 +08:00