Skip to content

Commit

Permalink
close port in normal situation
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Jul 4, 2008
1 parent b6b8921 commit a378fd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions elibs/server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ handle_upload_pack_impl(Sock, Host, Header) ->
% in response to the demand, git-upload-pack will stream out the requested
% pack information. data completion is denoted by "0000".
stream_out(Port, Sock),

% close connection

% close connections
port_close(Port),
ok = gen_tcp:close(Sock);
{error, closed} ->
port_command(Port, "0000"),
Expand Down

0 comments on commit a378fd1

Please sign in to comment.