Skip to content

AWS ELB 2.0 support on IIS environment.#301

Open
KennethanCeyer wants to merge 1 commit intosta:masterfrom
KennethanCeyer:master
Open

AWS ELB 2.0 support on IIS environment.#301
KennethanCeyer wants to merge 1 commit intosta:masterfrom
KennethanCeyer:master

Conversation

@KennethanCeyer
Copy link

@KennethanCeyer KennethanCeyer commented Sep 28, 2016

Hello STA.BLOCKHEAD developer

I used to your websocket-sharp library for making realtime service (the project running with IIS 8.5 and .NET).

This library working perfectly on local environment of my computer.

But the problem occurred when i deployed the project to cloud server (like AWS Beanstalk).

The cloud environment is running behind Load Balancer (ELB 2.0 : Elastic Load Balancer).

The load balancer has some problem when running other portocol that unlike SOAP(http, https), like ws(websocket protocol), Yes you can solve this problem by using ALB (or ELB 2.0) in AWS.

But ALB (or ELB 2.0) changes origin websocket request url to new url is fixes 80 port.

Connection will be has problem to IF clause at 621 line of your source file Server/WebSocketServer.cs, so you need to remove _port condition.

And also i attached the script files for setting Elastic Beanstalk service in IIS environment.

Thank you for reading.

sta added a commit that referenced this pull request Oct 8, 2016
Experimental implementation to support #274, #296, and #301.
@jogibear9988
Copy link

close?

@KennethanCeyer
Copy link
Author

I will check this fix in my service on next Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants