Proxy server example
Rembert Magri
rmagri at v2com.mobi
Thu Jul 2 15:56:38 EDT 2009
Hi Trustin,
I have been trying to use your Proxy Server Example but it seems I am
getting the same error as Dave has already reported
(http://markmail.org/message/kb7glbm573el2gg2). I gess it might be a
concurrency issue, because when I turn the System.out.printn's off, it seems
I get more ClosedChannelExceptions.
Eventually I can load the entire redirected page without any problem, but in
most cases the error keeps occurring and I aways have to try refreshing. I
don't think it happens because of the load (I am redirecting a simple
3-frames html page).
Do you think there is any way to solve this problem? I'm currently using
Netty just to get this proxy working, and it would be great if I could show
my dev team it has better performance AND reliability than Mina, for
instance.
Thanks,
Rembert
Trustin Lee wrote:
>
> Hi folks,
>
> On popular demand, I added the proxy server example to the trunk:
>
> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/netty/trunk/src/main/java/org/jboss/netty/example/proxy/
>
> It's a very simple proxy server that always connects to the same remote
> address. It prints out all inbound and outbound traffic in hexadecimal
> form, hence named as 'HexDumpProxy'.
>
> The code is pretty straightforward. Please feel free to comment to make
> it more comprehensive!
>
> Cheers,
> Trustin
>
> PS: I will also write another example that demonstrates the transfer of
> large file early next week. ;)
>
> --
> — Trustin Lee, http://gleamynode.net/
>
>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
>
--
View this message in context: http://n2.nabble.com/Proxy-server-example-tp3066604p3197447.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list