소스 검색

Merge pull request #120 from divolgin/fix

Fix failing requests when ibrowse_lb process does not stop gracefully.
pull/125/head
Chandrashekhar Mullaparthi 10 년 전
부모
커밋
e18ea912b6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/ibrowse_lb.erl

+ 4
- 1
src/ibrowse_lb.erl 파일 보기

@ -216,7 +216,10 @@ handle_info(_Info, State) ->
%% Description: Shutdown the server
%% Returns: any (ignored by gen_server)
%%--------------------------------------------------------------------
terminate(_Reason, _State) ->
terminate(_Reason, #state{host = Host, port = Port}) ->
% Use delete_object instead of delete in case another process for this host/port
% has been spawned, in which case will be deleting the wrong record because pid won't match.
ets:delete_object(ibrowse_lb, #lb_pid{host_port = {Host, Port}, pid = self()}),
ok.
%%--------------------------------------------------------------------

불러오는 중...
취소
저장