Skip to content

Commit

Permalink
fix nginx build and config (for *nix, esp Mac) and a webserver regres…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
vtjnash committed Oct 29, 2012
1 parent cce06c3 commit e59566e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ NGINX_FLAGS += \
--with-ld-opt="-L'$(USRLIB)' -lpcre"
else
NGINX_FLAGS += \
--with-ld-opt="-L'$(USRLIB)' -lpcre"
--with-ld-opt="-L'$(USRLIB)' -lpcre -Wl,-rpath,$(USRLIB) $(RPATH)"
endif

compile-nginx: install-nginx
Expand Down
4 changes: 2 additions & 2 deletions deps/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error_log logs/nginx.log info;
events {
worker_connections 1024;
worker_connections 256;
}
http {
access_log logs/access.log combined;
Expand All @@ -26,7 +26,7 @@ http {
}

location / {
root ../lib/julia/ui/website;
root lib/julia/ui/website;
}
}
}
2 changes: 1 addition & 1 deletion ui/webserver/webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,8 @@ void get_response(request* req,uv_stream_t *client)
buf.base=p->cstr;
buf.len=response.size();
uv_write_t *wr = new uv_write_t;
wr->data=(void*)buf.base;
uv_write(wr,(uv_stream_t*)client,&buf,1,&free_write_buffer);
//wr->data=(void*)buf.base;

// destroySoon the connection to the client
uv_shutdown_t *sr = new uv_shutdown_t;
Expand Down

0 comments on commit e59566e

Please sign in to comment.