nginx 라는 초경량화된 웹서버가 있다. 뭐, 아파치랑 비슷한 역할을 하는데, 좀 가볍다는 정도인 듯 하다.
그런데 해당 웹서버를 쓰는 서버에 자바로 http client를 물리니 소켓 커넥션 시에
“Software caused connection abort” 라는 오류 메시지가 나타난다.
구글링을 해보니, ACK가 도달 안하고 어쩌고.. @%#$!!… 대충보니, 네트워크 핸드쉐이킹할 때 쳐내는 것 같다.
똑같은 프로그램인데, 아파치로 구동시에는 정상 응답이 오고.. nginx로 구동시에는 에러 응답이 온다.
1 2 3 4 |
HTTP/1.1 200 OK Date: Wed, 10 Mar 2010 16:41:07 GMT Server: Apache/2.2.0 (Unix) mod_jk/1.2.15 Cache-Control: no-cache |
1 2 3 |
<?xml version="1.0" encoding="utf-8" ?> <response> </response> |
1 2 3 4 5 6 |
HTTP/1.1 200 OK Server: nginx/0.7.61 Date: Wed, 10 Mar 2010 16:41:34 GMT Content-Type: text/xml;charset=UTF-8 Connection: close Pragma: no-cache |
1 2 3 4 5 6 7 |
<html> <head><title>400 Bad Request</title></head> <body bgcolor="white"> <center><h1>400 Bad Request</h1></center> <hr><center>nginx/0.7.61</center> </body> </html> |
도대체 이유를 잘 모르겠다. 뭔가 내가 쓰고 있는 라이브러리에서 request header를 조금 가공시키나?
좀 더 고민해봐야할 문제인 듯 하다^^