Permalink
Browse files

close port in normal situation

  • Loading branch information...
1 parent b6b8921 commit a378fd1f56a558648a3fe200eb091b45592c14ea @mojombo committed Jul 4, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 elibs/server.erl
View
@@ -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"),

0 comments on commit a378fd1

Please sign in to comment.