public
Fork of KirinDave/fuzed
Description: A new revision of Fuzed, the Erlang-based frontend for web apps. Check out the mailing list at http://groups.google.com/group/fuzed
Clone URL: git://github.com/tmm1/fuzed.git
catch any peername errors
mojombo (author)
Mon Jun 16 23:49:44 -0700 2008
commit  edf193b8e4c63da381c9f88364ec4002b5c53cc9
tree    68ba622645ebf4352114f8e618cbec1ea8a66eae
parent  6673fe16d5be7cc74c75d63a284efb5d3d844dd5
...
47
48
49
 
 
 
 
 
 
 
50
51
52
...
47
48
49
50
51
52
53
54
55
56
57
58
59
0
@@ -47,6 +47,13 @@ yaws_prepare(querypath, Arg) ->
0
   prep(Path);
0
 yaws_prepare(remote_addr, Arg) ->
0
   Socket = Arg#arg.clisock,
0
+ try
0
+ get_remote_addr(Socket)
0
+ catch
0
+ _:_ -> ok
0
+ end.
0
+
0
+get_remote_addr(Socket) ->
0
   Peer = inet:peername(Socket),
0
   case Peer of
0
     {ok, {AddressIntegerTuple, _Port}} ->

Comments

    No one has commented yet.