Permalink
Browse files

mochiweb upgrade_state support for stud_hack

  • Loading branch information...
1 parent 52f1dfe commit e368c12e85630ba931099afee3ca41a300a9f542 @RJ committed Jul 5, 2011
Showing with 13 additions and 1 deletion.
  1. +13 −1 src/mochiweb_socket_server.erl
@@ -242,7 +242,19 @@ upgrade_state({mochiweb_socket_server, Port, Loop, Name,
acceptor_pool_size=AcceptorPoolSize,
ssl=SSL,
ssl_opts=SSL_opts,
- acceptor_pool=AcceptorPool}.
+ acceptor_pool=AcceptorPool};
+upgrade_state({mochiweb_socket_server, Port, Loop, Name,
+ Max, IP, Listen, NoDelay, Backlog, ActiveSockets,
+ AcceptorPoolSize, SSL, SSL_opts,
+ AcceptorPool,ProfileFun}) ->
+ #mochiweb_socket_server{port=Port, loop=Loop, name=Name, max=Max, ip=IP,
+ listen=Listen, nodelay=NoDelay, backlog=Backlog,
+ active_sockets=ActiveSockets,
+ acceptor_pool_size=AcceptorPoolSize,
+ ssl=SSL,
+ ssl_opts=SSL_opts,
+ acceptor_pool=AcceptorPool,
+ profile_fun=ProfileFun}.
handle_call(Req, From, State) when ?is_old_state(State) ->
handle_call(Req, From, upgrade_state(State));

0 comments on commit e368c12

Please sign in to comment.