Skip to content

fix: AI Runtime 통신을 HTTP/1.1로 고정 - #93

Merged
EHWIYA merged 2 commits into
mainfrom
agent/fix-92-ai-runtime-http11
Aug 6, 2026
Merged

fix: AI Runtime 통신을 HTTP/1.1로 고정#93
EHWIYA merged 2 commits into
mainfrom
agent/fix-92-ai-runtime-http11

Conversation

@hywznn

@hywznn hywznn commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

왜 필요한가요?

Java HttpClient는 버전을 지정하지 않으면 HTTP/2를 우선 시도합니다. AI Runtime은 FastAPI/Uvicorn의 HTTP/1.1로 실행되므로, 로컬·프록시·배포 환경에서 프로토콜 협상 차이를 제거하기 위해 Server의 AI Runtime 호출을 HTTP/1.1로 명시합니다.

Refs #92

HTTP 422는 연결 후 요청 계약이 거부된 응답이므로 이 전송 프로토콜 변경과 별개입니다.

무엇이 바뀌나요?

  • AI Runtime 전용 HttpClientHttpClient.Version.HTTP_1_1을 지정했습니다.
  • Client 생성을 별도 메서드로 분리해 프로토콜 버전과 기존 설정을 직접 검증할 수 있게 했습니다.
  • 기존 connect timeout과 redirect 차단 정책은 유지합니다.
  • 외부 API와 Server ↔ AI JSON 계약은 변경하지 않습니다.

어떻게 검증했나요?

  • ./gradlew test --tests 'com.fowoco.server.aiintegration.infrastructure.http.AiRuntimeHttpConfigurationTest' --tests 'com.fowoco.server.aiintegration.infrastructure.http.RemoteAiRuntimeClientWireMockTest'
  • ./gradlew --no-daemon clean test — BUILD SUCCESSFUL
  • 생성된 Client의 HTTP 버전이 HTTP_1_1인지 확인
  • connect timeout과 redirect NEVER 설정 유지 확인

병합 전 확인

  • 단위·WireMock 회귀 테스트
  • 전체 테스트
  • AI #13이 반영된 실제 Runtime과 Server ↔ AI Smoke Test
  • 401·422·timeout과 프로토콜 오류를 구분해 결과 기록

@hywznn hywznn added area:server Spring Boot API·도메인·DB·tenant·Task Workflow 영역; Prompt·모델·Provider 구현 제외 area:ai-integration Server ↔ AI Runtime 내부 계약·Client·검증·trace 연동 영역; Prompt·모델·Provider 구현은 ai 저장소 소유 labels Aug 6, 2026
@hywznn
hywznn requested a review from krestar August 6, 2026 03:59
@hywznn hywznn added priority:P0 MVP 진행을 막는 최우선 핵심 작업 status:in-review 구현을 마치고 리뷰 또는 병합을 기다리는 작업 type:integration 외부 LLM·DB·스토리지 등 시스템 간 연동 작업 labels Aug 6, 2026
@hywznn
hywznn requested review from EHWIYA and chaeliki and removed request for chaeliki and krestar August 6, 2026 03:59
@hywznn
hywznn marked this pull request as ready for review August 6, 2026 04:14
@hywznn
hywznn requested a review from krestar August 6, 2026 05:22
@EHWIYA
EHWIYA merged commit 59dcfac into main Aug 6, 2026
4 checks passed
@EHWIYA
EHWIYA deleted the agent/fix-92-ai-runtime-http11 branch August 6, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai-integration Server ↔ AI Runtime 내부 계약·Client·검증·trace 연동 영역; Prompt·모델·Provider 구현은 ai 저장소 소유 area:server Spring Boot API·도메인·DB·tenant·Task Workflow 영역; Prompt·모델·Provider 구현 제외 priority:P0 MVP 진행을 막는 최우선 핵심 작업 status:in-review 구현을 마치고 리뷰 또는 병합을 기다리는 작업 type:integration 외부 LLM·DB·스토리지 등 시스템 간 연동 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants