mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
* src/Makefile.win32: Updated (thanks to Sergei Golovan)
* src/Makefile.in: Added installation of ejabberd.cfg (thanks to Sergei Golovan) * src/web/ejabberd_http.erl: Fixed support for HTTP/1.0 clients * doc/guide.tex: Updated (thanks to Sergei Golovan) SVN Revision: 240
This commit is contained in:
parent
d35209561d
commit
b88da95b51
11
ChangeLog
11
ChangeLog
@ -1,5 +1,16 @@
|
|||||||
|
2004-07-07 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/Makefile.win32: Updated (thanks to Sergei Golovan)
|
||||||
|
|
||||||
|
* src/Makefile.in: Added installation of ejabberd.cfg (thanks to
|
||||||
|
Sergei Golovan)
|
||||||
|
|
||||||
|
* src/web/ejabberd_http.erl: Fixed support for HTTP/1.0 clients
|
||||||
|
|
||||||
2004-07-06 Alexey Shchepin <alexey@sevcom.net>
|
2004-07-06 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* doc/guide.tex: Updated (thanks to Sergei Golovan)
|
||||||
|
|
||||||
* src/ejabberd_auth.erl: Minor fix
|
* src/ejabberd_auth.erl: Minor fix
|
||||||
|
|
||||||
* src/ejabberd_c2s.erl: Fixed sending of presence to own resources
|
* src/ejabberd_c2s.erl: Fixed sending of presence to own resources
|
||||||
|
692
doc/guide.html
692
doc/guide.html
File diff suppressed because it is too large
Load Diff
876
doc/guide.tex
876
doc/guide.tex
File diff suppressed because it is too large
Load Diff
@ -23,6 +23,8 @@ BEAMDIR = $(EJABBERDDIR)/ebin
|
|||||||
PRIVDIR = $(EJABBERDDIR)/priv
|
PRIVDIR = $(EJABBERDDIR)/priv
|
||||||
SODIR = $(PRIVDIR)/lib
|
SODIR = $(PRIVDIR)/lib
|
||||||
MSGSDIR = $(PRIVDIR)/msgs
|
MSGSDIR = $(PRIVDIR)/msgs
|
||||||
|
LOGDIR = $(DESTDIR)/var/log/ejabberd
|
||||||
|
ETCDIR = $(DESTDIR)/etc/ejabberd
|
||||||
|
|
||||||
all: $(ERLSHLIBS) compile-beam all-recursive
|
all: $(ERLSHLIBS) compile-beam all-recursive
|
||||||
|
|
||||||
@ -57,6 +59,9 @@ install: all
|
|||||||
install -m 644 *.so $(SODIR)
|
install -m 644 *.so $(SODIR)
|
||||||
install -d $(MSGSDIR)
|
install -d $(MSGSDIR)
|
||||||
install -m 644 msgs/*.msg $(MSGSDIR)
|
install -m 644 msgs/*.msg $(MSGSDIR)
|
||||||
|
install -d $(ETCDIR)
|
||||||
|
install -b -m 644 ejabberd.cfg.example $(ETCDIR)/ejabberd.cfg
|
||||||
|
install -d $(LOGDIR)
|
||||||
|
|
||||||
clean: clean-recursive clean-local
|
clean: clean-recursive clean-local
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ release : build release_clean
|
|||||||
mkdir $(EREL)
|
mkdir $(EREL)
|
||||||
mkdir $(EBIN_DIR)
|
mkdir $(EBIN_DIR)
|
||||||
copy *.beam $(EBIN_DIR)
|
copy *.beam $(EBIN_DIR)
|
||||||
|
@erase $(EBIN_DIR)\configure.beam
|
||||||
copy *.app $(EBIN_DIR)
|
copy *.app $(EBIN_DIR)
|
||||||
mkdir $(PRIV_DIR)
|
mkdir $(PRIV_DIR)
|
||||||
mkdir $(SO_DIR)
|
mkdir $(SO_DIR)
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
-record(state, {sockmod,
|
-record(state, {sockmod,
|
||||||
socket,
|
socket,
|
||||||
request_method,
|
request_method,
|
||||||
|
request_version,
|
||||||
request_path,
|
request_path,
|
||||||
request_auth,
|
request_auth,
|
||||||
request_content_length,
|
request_content_length,
|
||||||
@ -72,8 +73,9 @@ receive_headers(State) ->
|
|||||||
Data = SockMod:recv(Socket, 0, 300000),
|
Data = SockMod:recv(Socket, 0, 300000),
|
||||||
?DEBUG("recv: ~p~n", [Data]),
|
?DEBUG("recv: ~p~n", [Data]),
|
||||||
case Data of
|
case Data of
|
||||||
{ok, {http_request, Method, Path, _Version}} ->
|
{ok, {http_request, Method, Path, Version}} ->
|
||||||
receive_headers(State#state{request_method = Method,
|
receive_headers(State#state{request_method = Method,
|
||||||
|
request_version = Version,
|
||||||
request_path = Path});
|
request_path = Path});
|
||||||
{ok, {http_header, _, 'Authorization', _, Auth}} ->
|
{ok, {http_header, _, 'Authorization', _, Auth}} ->
|
||||||
receive_headers(State#state{request_auth = parse_auth(Auth)});
|
receive_headers(State#state{request_auth = parse_auth(Auth)});
|
||||||
@ -95,16 +97,22 @@ receive_headers(State) ->
|
|||||||
element(2, State#state.request_path)]),
|
element(2, State#state.request_path)]),
|
||||||
Out = process_request(State),
|
Out = process_request(State),
|
||||||
send_text(State, Out),
|
send_text(State, Out),
|
||||||
case SockMod of
|
case State#state.request_version of
|
||||||
gen_tcp ->
|
{1,1} ->
|
||||||
inet:setopts(Socket, [{packet, http}]);
|
case SockMod of
|
||||||
ssl ->
|
gen_tcp ->
|
||||||
ssl:setopts(Socket, [{packet, http}])
|
inet:setopts(Socket, [{packet, http}]);
|
||||||
end,
|
ssl ->
|
||||||
receive_headers(#state{sockmod = SockMod,
|
ssl:setopts(Socket, [{packet, http}])
|
||||||
socket = Socket,
|
end,
|
||||||
use_http_poll = State#state.use_http_poll,
|
receive_headers(
|
||||||
use_web_admin = State#state.use_web_admin});
|
#state{sockmod = SockMod,
|
||||||
|
socket = Socket,
|
||||||
|
use_http_poll = State#state.use_http_poll,
|
||||||
|
use_web_admin = State#state.use_web_admin});
|
||||||
|
_ ->
|
||||||
|
ok
|
||||||
|
end;
|
||||||
{error, _Reason} ->
|
{error, _Reason} ->
|
||||||
ok;
|
ok;
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user