You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I Luk Kim e2c242c7cc fix(sec): 대형 exhibit 파일로 인한 서버 메모리 고갈 방지
- fetch_text에 max_bytes 파라미터 추가: Content-Length 헤더로 다운로드 전 사전 reject,
  헤더 없으면 content.read(max_bytes+1)로 제한적 읽기
- ValueError는 즉시 raise (retry 없음 — 크기는 재시도해도 안 줄어듦)
- in-memory 캐시(_text_cache) 1MB 가드: 대형 응답은 디스크 캐시에만 저장
- MAX_EXHIBIT_SIZE 1MB → 5MB, fetch_text(max_bytes=...) 호출로 다운로드 전 체크
- exhibit deadline 30초 → 15초 (서비스 + 엔드포인트 + bulk)
- 신규 테스트 5개: Content-Length 사전 거부, body 제한 읽기, 메모리 캐시 가드,
  소형 캐시 유지, ValueError no-retry

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 months ago
..
__init__.py Initial commit with full project improvements 5 months ago
alpaca.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
catalog.py Initial commit with full project improvements 5 months ago
database.py Initial commit with full project improvements 5 months ago
error_logs.py chore: remove SQLite entirely, PostgreSQL only 5 months ago
etf.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
filings.py fix(sec): 대형 exhibit 파일로 인한 서버 메모리 고갈 방지 5 months ago
financial.py perf: Phase 1-3 Stock Oracle API 성능 개선 5 months ago
finra.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
fred.py Initial commit with full project improvements 5 months ago
health.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
migration.py Initial commit with full project improvements 5 months ago
news.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
overlay.py Add Phase 5 Attention Overlay API and fix Redis port mismatch 5 months ago
price.py perf: Phase 1-3 Stock Oracle API 성능 개선 5 months ago
request_logs.py chore: remove SQLite entirely, PostgreSQL only 5 months ago
screener.py feat(screener): add stock screener API with yfinance EquityQuery 5 months ago
stocks.py docs: 앱 내부 문서(루트 HTML, OpenAPI)에 index 엔드포인트 추가 5 months ago