From matthias@REDACTED Fri May 1 22:43:18 2009 From: matthias@REDACTED (Matthias Lang) Date: Fri, 1 May 2009 22:43:18 +0200 Subject: [erlang-patches] patch to fix typo in inets HTTP client Message-ID: <20090501204318.GA8295@contorpis.lisalinda.com> I used to think backwards compatibility had such a high priority that this sort of patch had no chance at all, but then I saw http://erlang.org/pipermail/erlang-questions/2008-January/032505.html and got thinking. Matt --- otp_src_R13B/lib/inets/src/http_client/httpc_handler.erl 2009-03-12 13:31:08.000000000 +0100 +++ otp_src_R13B_matthias/lib/inets/src/http_client/httpc_handler.erl 2009-05-01 22:31:30.681507485 +0200 @@ -412,9 +412,9 @@ %%% Error cases handle_info({tcp_closed, _}, State) -> - {stop, session_remotly_closed, State}; + {stop, session_remotely_closed, State}; handle_info({ssl_closed, _}, State) -> - {stop, session_remotly_closed, State}; + {stop, session_remotely_closed, State}; handle_info({tcp_error, _, _} = Reason, State) -> {stop, Reason, State}; handle_info({ssl_error, _, _} = Reason, State) -> From matthias@REDACTED Fri May 1 22:47:18 2009 From: matthias@REDACTED (Matthias Lang) Date: Fri, 1 May 2009 22:47:18 +0200 Subject: [erlang-patches] patch to correct typo in a comment in mnesia_controller.erl Message-ID: <20090501204718.GB8295@contorpis.lisalinda.com> Same typo fix as the previous patch, but this time in a comment. Matt --- otp_src_R13B/lib/mnesia/src/mnesia_controller.erl 2009-03-12 13:27:29.000000000 +0100 +++ otp_src_R13B_matthias/lib/mnesia/src/mnesia_controller.erl 2009-05-01 22:45:25.905996214 +0200 @@ -1151,7 +1151,7 @@ State1#state{late_loader_queue=gb_trees:delete_any(Tab, LateQueue0)}; false -> %% Either the node went down or table was not - %% loaded remotly yet + %% loaded remotely yet case Done#loader_done.needs_reply of true -> reply(Done#loader_done.reply_to, From twoggle@REDACTED Tue May 5 12:04:19 2009 From: twoggle@REDACTED (Tim Fletcher) Date: Tue, 5 May 2009 11:04:19 +0100 Subject: [erlang-patches] patch to allow empty passwords in http client basic authorization Message-ID: Use case: some web services use basic auth, with a token as the user part and no password part. Curl has support for this. --- httpc_request.erl 2009-03-12 12:31:41.000000000 +0000 +++ httpc_request.patched.erl 2009-05-05 10:45:00.000000000 +0100 @@ -201,6 +201,9 @@ [User, Passwd] -> UserPasswd = base64:encode_to_string(User ++ ":" ++ Passwd), Headers#http_request_h{authorization = "Basic " ++ UserPasswd}; + [User] -> + UserPasswd = base64:encode_to_string(User ++ ":"), + Headers#http_request_h{authorization = "Basic " ++ UserPasswd}; _ -> Headers end. From cy6erbr4in@REDACTED Sun May 10 00:22:21 2009 From: cy6erbr4in@REDACTED (Alexander Dergachev) Date: Sun, 10 May 2009 02:22:21 +0400 Subject: [erlang-patches] minor fix for erlang.el Message-ID: Hello, I was a little bit surprised when I tried to use skeletons in the Emacs instead of hand writing of code. I`ve found that for some skeletons there were missed definition of ?SERVER macro, for example, it`s missed for these behaviours: gen_server, gen_event and gen_fsm, but it`s used in all of them in the start_link function. Maybe there`s some reason for it? It would be very good if somebody could explain it for me. If there`s no reason, and it`s mistake, I would like to propose my modest patch for this issue. --- erlang.el 2009-03-12 15:23:02.000000000 +0300 +++ erlang.patched.el 2009-05-10 01:40:55.000000000 +0400 @@ -952,6 +952,8 @@ "handle_info/2," n> "terminate/2, code_change/3])." n n + "-define(SERVER, ?MODULE)." n n + "-record(state, {})." n n (erlang-skel-double-separator 2) @@ -1047,6 +1049,8 @@ "-export([init/1, handle_event/2, handle_call/2, " n> "handle_info/2, terminate/2, code_change/3])." n n + "-define(SERVER, ?MODULE)." n n + "-record(state, {})." n n (erlang-skel-double-separator 2) @@ -1149,6 +1153,8 @@ "-export([init/1, state_name/2, state_name/3, handle_event/3," n> "handle_sync_event/4, handle_info/3, terminate/3, code_change/4])." n n + "-define(SERVER, ?MODULE)." n n + "-record(state, {})." n n (erlang-skel-double-separator 2) -- With Best Regards, Alexander Dergachev -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreasbwagner@REDACTED Thu May 28 23:11:47 2009 From: andreasbwagner@REDACTED (Andreas Wagner) Date: Thu, 28 May 2009 17:11:47 -0400 Subject: SCTP example code will not compile with these errors Message-ID: <58d839f50905281411y35f4d16ei953fe62229daef3@mail.gmail.com> Hi all, frea, bhyde and I found some errors in the sctp client and server example code from the docs. Someone with power to edit the docs should fix these mistakes: sctp_server: - The server/1 definition should end with a period not a semicolon - orlese should be changed to orelse sctp_client: - The include file path should be "kernel/include/inet_sctp.hrl" - init:stop should end with a period not a semicolon - {ok Assoc} should be {ok, Assoc} http://erlang.org/doc/man/gen_sctp.html#examples Regards, Andreas Wagner