Bilal-S / iis2tomcat

AJP Connector between Internet Information Services (IIS) and Apache Tomcat
http://www.boncode.net/boncode-connector
49 stars 32 forks source link

Add support for websockets #51

Closed redtopia closed 7 years ago

redtopia commented 7 years ago

A new websocket extension was recently released for Lucee 5.1, but does not appear to work with IIS/Boncode because the Boncode adapter does not pass websocket requests through to Tomcat. If this can be achieved, please let me know how to configure it, otherwise, consider this a feature request.

The Lucee websocket extension is here:

https://github.com/isapir/lucee-websocket

Bilal-S commented 7 years ago

Boncode is a translator between AJP and HTTP protocols. Websocket protocol is a protocol on its own WS (RFC 6455). The potential is to create a bridge between AJP and WS protocol but the implementation would be proprietary since we have to invent it most likely mimicking the common lifecycle events:

onHandshake onOpen onMessage onError onClose onChannelOpen onChannelClose onSubscribe onUnsubscribe

This would most likely not work like igal's extensions

redtopia commented 7 years ago

I don't know the nuts and bolts of how it's all put together, but I believe Igal's extension uses the tomcat websocket class. It's not possible to simply pass all websocket activity to Tomcat?

https://tomcat.apache.org/tomcat-8.5-doc/web-socket-howto.html#Overview

Bilal-S commented 7 years ago

You can try to use ARR3 as people discuss here: http://stackoverflow.com/questions/33272786/websockets-on-tomcat-8-iis-8-with-arr-3-are-not-working

redtopia commented 7 years ago

Meaning use ARR to route websocket traffic directly to tomcat?

Bilal-S commented 7 years ago

I am interpreting it as such. I have not done this.