From dharmeshdata at gmail.com Mon Feb 2 14:02:07 2015 From: dharmeshdata at gmail.com (Dharmesh Data) Date: Mon, 2 Feb 2015 13:02:07 -0600 Subject: [undertow-dev] War deployment to undertow Message-ID: Hi, I recently found some articles which shows undertow has excellent performance especially because of asynchronous non-blocking io. So I am trying to do a PoC to see if it fits our needs. I tried to deploy our war file with embedded undertow. Below is the sample code, warpath is the absolute path for war file. Server starts up but doesn?t do anything. It works fine if I put undertow inside the war and explicitly adds servlets and filters to undertow, but we are interested in keeping war independent of any container libraries. Our application Servlet Context Listener would add servlets and filters. Application will create a war and we are trying to deploy that war to undertow. Is it possible to do that? Can you please show how to do it? Any help is deeply appreciated. DeploymentInfo servletBuilder = Servlets.*deployment*() .setClassLoader(Startup.*class*.getClassLoader()) .setContextPath("/") .setDeploymentName(warPath); DeploymentManager manager = Servlets.*defaultContainer* ().addDeployment(servletBuilder); manager.deploy(); Undertow server = Undertow.*builder*() .addHttpListener(*8080*, "localhost") .setHandler(manager.start()).build(); server.start(); Thank you, Dharmesh Data -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150202/df8c2815/attachment.html From jason.greene at redhat.com Tue Feb 3 14:03:01 2015 From: jason.greene at redhat.com (Jason Greene) Date: Tue, 3 Feb 2015 13:03:01 -0600 Subject: [undertow-dev] War deployment to undertow In-Reply-To: References: Message-ID: Hello Dharmesh, At this point in time Undertow standalone just supports programatic deployments. For full war deployment, we recommend using the WildFly project (wildfly.org), which bundles Undertow along with other Java EE frameworks like Hibernate. If disk footprint is a concern, you can actually remove subsystems and modules as you please. WildFly 9 will also ship with a servlet-only distribution (called web, not to be confused with the EE web profile). Hope this helps! > On Feb 2, 2015, at 1:02 PM, Dharmesh Data wrote: > > Hi, > > > I recently found some articles which shows undertow has excellent performance especially because of asynchronous non-blocking io. So I am trying to do a PoC to see if it fits our needs. > > I tried to deploy our war file with embedded undertow. Below is the sample code, warpath is the absolute path for war file. > > Server starts up but doesn?t do anything. It works fine if I put undertow inside the war and explicitly adds servlets and filters to undertow, but we are interested in keeping war independent of any container libraries. > > Our application Servlet Context Listener would add servlets and filters. Application will create a war and we are trying to deploy that war to undertow. Is it possible to do that? Can you please show how to do it? Any help is deeply appreciated. > > > > > > DeploymentInfo servletBuilder = Servlets.deployment() > > .setClassLoader(Startup.class.getClassLoader()) > > .setContextPath("/") > > .setDeploymentName(warPath); > > > DeploymentManager manager = Servlets.defaultContainer().addDeployment(servletBuilder); > > manager.deploy(); > > > Undertow server = Undertow.builder() > > .addHttpListener(8080, "localhost") > > .setHandler(manager.start()).build(); > > server.start(); > > > > Thank you, > > Dharmesh Data > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev -- Jason T. Greene WildFly Lead / JBoss EAP Platform Architect JBoss, a division of Red Hat From dharmeshdata at gmail.com Tue Feb 3 14:14:50 2015 From: dharmeshdata at gmail.com (Dharmesh Data) Date: Tue, 3 Feb 2015 13:14:50 -0600 Subject: [undertow-dev] War deployment to undertow In-Reply-To: References: Message-ID: Thank you very much Jason for responding. Information was really helpful! Thanks, Dharmesh On Tue, Feb 3, 2015 at 1:03 PM, Jason Greene wrote: > Hello Dharmesh, > > At this point in time Undertow standalone just supports programatic > deployments. For full war deployment, we recommend using the WildFly > project (wildfly.org), which bundles Undertow along with other Java EE > frameworks like Hibernate. If disk footprint is a concern, you can actually > remove subsystems and modules as you please. WildFly 9 will also ship with > a servlet-only distribution (called web, not to be confused with the EE web > profile). > > Hope this helps! > > > > On Feb 2, 2015, at 1:02 PM, Dharmesh Data > wrote: > > > > Hi, > > > > > > I recently found some articles which shows undertow has excellent > performance especially because of asynchronous non-blocking io. So I am > trying to do a PoC to see if it fits our needs. > > > > I tried to deploy our war file with embedded undertow. Below is the > sample code, warpath is the absolute path for war file. > > > > Server starts up but doesn?t do anything. It works fine if I put > undertow inside the war and explicitly adds servlets and filters to > undertow, but we are interested in keeping war independent of any container > libraries. > > > > Our application Servlet Context Listener would add servlets and filters. > Application will create a war and we are trying to deploy that war to > undertow. Is it possible to do that? Can you please show how to do it? Any > help is deeply appreciated. > > > > > > > > > > > > DeploymentInfo servletBuilder = Servlets.deployment() > > > > .setClassLoader(Startup.class.getClassLoader()) > > > > .setContextPath("/") > > > > .setDeploymentName(warPath); > > > > > > DeploymentManager manager = > Servlets.defaultContainer().addDeployment(servletBuilder); > > > > manager.deploy(); > > > > > > Undertow server = Undertow.builder() > > > > .addHttpListener(8080, "localhost") > > > > .setHandler(manager.start()).build(); > > > > server.start(); > > > > > > > > Thank you, > > > > Dharmesh Data > > > > _______________________________________________ > > undertow-dev mailing list > > undertow-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/undertow-dev > > -- > Jason T. Greene > WildFly Lead / JBoss EAP Platform Architect > JBoss, a division of Red Hat > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150203/89010669/attachment.html From jason.greene at redhat.com Tue Feb 3 14:21:33 2015 From: jason.greene at redhat.com (Jason Greene) Date: Tue, 3 Feb 2015 13:21:33 -0600 Subject: [undertow-dev] Multi Part Reuest Issue in Undertow for Wildfly 8.2.0.Final In-Reply-To: References: Message-ID: <9EBB9AEB-A54C-4E41-BCE5-8591DD49EEA8@redhat.com> Hi Bikash, Did you build the latest version or just use the JARs they have attached. There was two changes related to this area. If you did build, can you post the sha1 you built (output of git show command) Thanks! > On Jan 31, 2015, at 10:52 PM, Bikash Gupta wrote: > > I have migrated my application from Jboss AS 7.1.1.Final to WildFly 8.2.0.Final where I have used Primeface 5, Shiro and Rewrite 2.0.12. Due to this migration my upload has stopped working. > > Based on the comments in Rewrite Forum(http://www.ocpsoft.org/support/topic/command-not-fired-with-multipart-form-jsf-2-2/), I have replaced undertow module jar with latest version > > undertow-core-1.2.0.Beta9.jar > undertow-servlet-1.2.0.Beta9.jar > undertow-websockets-jsr-1.2.0.Beta9.jar > > Still the upload is not working. > > As suggested in other forums I have also tried custom FileUploadFilter for MultiPartReuest. Still no luck. > > Please suggest!!! > > -- > Regards > Biks > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev -- Jason T. Greene WildFly Lead / JBoss EAP Platform Architect JBoss, a division of Red Hat From espina.edgar at gmail.com Tue Feb 10 09:36:20 2015 From: espina.edgar at gmail.com (Edgar Espina) Date: Tue, 10 Feb 2015 11:36:20 -0300 Subject: [undertow-dev] transfer-encoding vs content-length with small response Message-ID: Hi, I know that Undertow figure it out a content-length or transfer-encoding header when none of them was set. That's good and it works as expected. It seems to be a problem when you explicitly set the "Transfer-Encoding" header bc Undertow, still add the Content-Length (on small responses?) but it doesn't remove the Transfer-Encoding header. On such cases, the response contains both headers, which I think it's wrong, no? -- edgar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150210/975e9980/attachment.html From bill at dartalley.com Sat Feb 14 14:49:46 2015 From: bill at dartalley.com (Bill O'Neil) Date: Sat, 14 Feb 2015 14:49:46 -0500 Subject: [undertow-dev] Path prefix in RoutingHandler Message-ID: I had a little trouble figuring out how to add a path prefix using the RoutingHandler. Is this possible? Currently I wrote a custom handler that wraps and delegates to a RoutingHandler with a fallback PathHandler which can handle path prefixes. My use case is a route for serving static assets under the /static/* route. Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150214/82041a4e/attachment.html From sdouglas at redhat.com Sun Feb 15 22:21:17 2015 From: sdouglas at redhat.com (Stuart Douglas) Date: Sun, 15 Feb 2015 22:21:17 -0500 (EST) Subject: [undertow-dev] Multi Part Reuest Issue in Undertow for Wildfly 8.2.0.Final In-Reply-To: <9EBB9AEB-A54C-4E41-BCE5-8591DD49EEA8@redhat.com> References: <9EBB9AEB-A54C-4E41-BCE5-8591DD49EEA8@redhat.com> Message-ID: <2056953081.13391631.1424056877004.JavaMail.zimbra@redhat.com> Undertow upstream should have a fix for this issue: https://github.com/undertow-io/undertow/commit/650b060eda872fe330b3614cbdf505bf2ff6c9ec As it is not spec compliant it will need to be explicitly enabled. At the moment this can be done with an Undertow ServletExtension, however once this fix makes it into Wildfly I will add something to jboss-web.xml and the undertow subsystem to allow this to be configured. Stuart ----- Original Message ----- > From: "Jason Greene" > To: "Bikash Gupta" > Cc: undertow-dev at lists.jboss.org > Sent: Wednesday, 4 February, 2015 3:21:33 AM > Subject: Re: [undertow-dev] Multi Part Reuest Issue in Undertow for Wildfly 8.2.0.Final > > Hi Bikash, > > Did you build the latest version or just use the JARs they have attached. > There was two changes related to this area. If you did build, can you post > the sha1 you built (output of git show command) > > Thanks! > > On Jan 31, 2015, at 10:52 PM, Bikash Gupta > > wrote: > > > > I have migrated my application from Jboss AS 7.1.1.Final to WildFly > > 8.2.0.Final where I have used Primeface 5, Shiro and Rewrite 2.0.12. Due > > to this migration my upload has stopped working. > > > > Based on the comments in Rewrite > > Forum(http://www.ocpsoft.org/support/topic/command-not-fired-with-multipart-form-jsf-2-2/), > > I have replaced undertow module jar with latest version > > > > undertow-core-1.2.0.Beta9.jar > > undertow-servlet-1.2.0.Beta9.jar > > undertow-websockets-jsr-1.2.0.Beta9.jar > > > > Still the upload is not working. > > > > As suggested in other forums I have also tried custom FileUploadFilter for > > MultiPartReuest. Still no luck. > > > > Please suggest!!! > > > > -- > > Regards > > Biks > > _______________________________________________ > > undertow-dev mailing list > > undertow-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/undertow-dev > > -- > Jason T. Greene > WildFly Lead / JBoss EAP Platform Architect > JBoss, a division of Red Hat > > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev > From bikash.gupta11 at gmail.com Tue Feb 3 15:39:33 2015 From: bikash.gupta11 at gmail.com (Bikash Gupta) Date: Wed, 4 Feb 2015 02:09:33 +0530 Subject: [undertow-dev] Multi Part Reuest Issue in Undertow for Wildfly 8.2.0.Final In-Reply-To: <9EBB9AEB-A54C-4E41-BCE5-8591DD49EEA8@redhat.com> References: <9EBB9AEB-A54C-4E41-BCE5-8591DD49EEA8@redhat.com> Message-ID: Hi Jason, I have build the latest version. Please find below output of git show command. Also I am attaching the sample project to reproduce the issue $ git show commit c3b52137a44e664c293a0a8a6a092716e038813b Merge: 650b060 299e8cc Author: Stuart Douglas Date: Sun Jan 25 12:55:04 2015 +0100 Merge pull request #279 from Westernacher/master UNDERTOW-375 Using separate indices for filters mapped by servlet name a... Regards Bikash On Wed, Feb 4, 2015 at 12:51 AM, Jason Greene wrote: > Hi Bikash, > > Did you build the latest version or just use the JARs they have attached. > There was two changes related to this area. If you did build, can you post > the sha1 you built (output of git show command) > > Thanks! > > On Jan 31, 2015, at 10:52 PM, Bikash Gupta > wrote: > > > > I have migrated my application from Jboss AS 7.1.1.Final to WildFly > 8.2.0.Final where I have used Primeface 5, Shiro and Rewrite 2.0.12. Due to > this migration my upload has stopped working. > > > > Based on the comments in Rewrite Forum( > http://www.ocpsoft.org/support/topic/command-not-fired-with-multipart-form-jsf-2-2/), > I have replaced undertow module jar with latest version > > > > undertow-core-1.2.0.Beta9.jar > > undertow-servlet-1.2.0.Beta9.jar > > undertow-websockets-jsr-1.2.0.Beta9.jar > > > > Still the upload is not working. > > > > As suggested in other forums I have also tried custom FileUploadFilter > for MultiPartReuest. Still no luck. > > > > Please suggest!!! > > > > -- > > Regards > > Biks > > _______________________________________________ > > undertow-dev mailing list > > undertow-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/undertow-dev > > -- > Jason T. Greene > WildFly Lead / JBoss EAP Platform Architect > JBoss, a division of Red Hat > > -- Thanks & Regards Bikash Kumar Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150204/a5375506/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: upload-file.zip Type: application/zip Size: 273042 bytes Desc: not available Url : http://lists.jboss.org/pipermail/undertow-dev/attachments/20150204/a5375506/attachment-0001.zip From sdouglas at redhat.com Sun Feb 15 22:29:05 2015 From: sdouglas at redhat.com (Stuart Douglas) Date: Sun, 15 Feb 2015 22:29:05 -0500 (EST) Subject: [undertow-dev] transfer-encoding vs content-length with small response In-Reply-To: References: Message-ID: <881684254.13392097.1424057345688.JavaMail.zimbra@redhat.com> This is indeed a bug, however it should have been fixed as part of https://issues.jboss.org/browse/UNDERTOW-180. Looking at the code it appears that AsyncSenderImpl also has this issue, I will fix it up (https://issues.jboss.org/browse/UNDERTOW-385). Stuart ----- Original Message ----- > From: "Edgar Espina" > To: undertow-dev at lists.jboss.org > Sent: Tuesday, 10 February, 2015 10:36:20 PM > Subject: [undertow-dev] transfer-encoding vs content-length with small response > > Hi, > > I know that Undertow figure it out a content-length or transfer-encoding > header when none of them was set. That's good and it works as expected. > > It seems to be a problem when you explicitly set the "Transfer-Encoding" > header bc Undertow, still add the Content-Length (on small responses?) but > it doesn't remove the Transfer-Encoding header. > > On such cases, the response contains both headers, which I think it's wrong, > no? > > -- > edgar > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev From sdouglas at redhat.com Sun Feb 15 22:38:29 2015 From: sdouglas at redhat.com (Stuart Douglas) Date: Sun, 15 Feb 2015 22:38:29 -0500 (EST) Subject: [undertow-dev] Path prefix in RoutingHandler In-Reply-To: References: Message-ID: <2007159051.13392603.1424057909179.JavaMail.zimbra@redhat.com> This is not currently possible, although it should be possible to add support for this fairly easily. Stuart ----- Original Message ----- > From: "Bill O'Neil" > To: undertow-dev at lists.jboss.org > Sent: Sunday, 15 February, 2015 3:49:46 AM > Subject: [undertow-dev] Path prefix in RoutingHandler > > I had a little trouble figuring out how to add a path prefix using the > RoutingHandler. Is this possible? Currently I wrote a custom handler that > wraps and delegates to a RoutingHandler with a fallback PathHandler which > can handle path prefixes. > > My use case is a route for serving static assets under the /static/* route. > > Thanks, > Bill > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev From gpn at networkart.com Tue Feb 17 04:05:59 2015 From: gpn at networkart.com (Guruprasad Nagaraj) Date: Tue, 17 Feb 2015 09:05:59 +0000 Subject: [undertow-dev] Undertow responding to unknown host Message-ID: Hi, I am using Wildfly 8.2 Final. I am using the default Undertow subsystem configuration - As you see I do not have any aliases apart from the localhost. I have a local DNS entry which points acme.example.com to the IP Address of the Wildfly Server/Host. When I try to fetch a page http://acme.example.com:8080/SVWeb/index.html, I do get the page back. While undertow does not know about this host, how is it that I get the content back? The Host header in the HTTP request is indeed - Host: ?acme.example.com:8080" Should I use any filters or access control to let Undertow know not serve unknown hosts? Thanks and Best Regards, GPN -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150217/cc27992b/attachment.html From tomaz.cerar at gmail.com Tue Feb 17 07:40:59 2015 From: tomaz.cerar at gmail.com (=?UTF-8?B?VG9tYcW+IENlcmFy?=) Date: Tue, 17 Feb 2015 13:40:59 +0100 Subject: [undertow-dev] Undertow responding to unknown host In-Reply-To: References: Message-ID: Hi, this is more disscussion for wildfly forums but anyhow.... "default-host" is configured as default and as such all non otherwise matching host will end up being served by default host. you could add another host and which will be used only when host matches the one you want or add extra host and make it default an example what you could do: Just keep in mind that if using non-default host, you need to tell your application to use it by adding jboss-web.xml with name-of-other-host -- tomaz On Tue, Feb 17, 2015 at 10:05 AM, Guruprasad Nagaraj wrote: > Hi, > I am using Wildfly 8.2 Final. > I am using the default Undertow subsystem configuration - > > > > > > > > > > > > > > > > > path="${jboss.home.dir}/welcome-content"/> > > > header-value="WildFly/8"/> > header-name="X-Powered-By" header-value="Undertow/1"/> > > > > As you see I do not have any aliases apart from the localhost. > > I have a local DNS entry which points acme.example.com to the IP Address > of the Wildfly Server/Host. > > When I try to fetch a page http://acme.example.com:8080/SVWeb/index.html, > I do get the page back. While undertow does not know about this host, how > is it that I get the content back? > The Host header in the HTTP request is indeed - > Host: ?acme.example.com:8080" > > Should I use any filters or access control to let Undertow know not > serve unknown hosts? > > Thanks and Best Regards, > GPN > > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150217/9ff390e9/attachment-0001.html From ecki at zusammenkunft.net Tue Feb 17 15:48:56 2015 From: ecki at zusammenkunft.net (Bernd Eckenfels) Date: Tue, 17 Feb 2015 21:48:56 +0100 Subject: [undertow-dev] Undertow responding to unknown host In-Reply-To: References: Message-ID: <20150217214856.00003321.ecki@zusammenkunft.net> Am Tue, 17 Feb 2015 13:40:59 +0100 schrieb Toma? Cerar : > "default-host" is configured as default and as such all non otherwise > matching host will end up being served by default host. Is this based on its name? Gruss Bernd From sdouglas at redhat.com Tue Feb 17 21:33:50 2015 From: sdouglas at redhat.com (Stuart Douglas) Date: Tue, 17 Feb 2015 21:33:50 -0500 (EST) Subject: [undertow-dev] Undertow responding to unknown host In-Reply-To: <20150217214856.00003321.ecki@zusammenkunft.net> References: <20150217214856.00003321.ecki@zusammenkunft.net> Message-ID: <711241137.14799059.1424226830275.JavaMail.zimbra@redhat.com> yes, this attribute has a default value of 'default-host'. Stuart ----- Original Message ----- > From: "Bernd Eckenfels" > To: undertow-dev at lists.jboss.org > Sent: Wednesday, 18 February, 2015 4:48:56 AM > Subject: Re: [undertow-dev] Undertow responding to unknown host > > Am Tue, 17 Feb 2015 13:40:59 +0100 > schrieb Toma? Cerar : > > "default-host" is configured as default and as such all non otherwise > > matching host will end up being served by default host. > > Is this based on its name? > > Gruss > Bernd > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev From espina.edgar at gmail.com Wed Feb 18 19:56:18 2015 From: espina.edgar at gmail.com (Edgar Espina) Date: Wed, 18 Feb 2015 21:56:18 -0300 Subject: [undertow-dev] transfer-encoding vs content-length with small response In-Reply-To: <881684254.13392097.1424057345688.JavaMail.zimbra@redhat.com> References: <881684254.13392097.1424057345688.JavaMail.zimbra@redhat.com> Message-ID: Thank you, Stuart. I do have a related question: should a 304 response set a Content-Length: 0? Don't think so, right? Today, Undertow set a content-length of 0 on 304 responses. On Mon, Feb 16, 2015 at 12:29 AM, Stuart Douglas wrote: > This is indeed a bug, however it should have been fixed as part of > https://issues.jboss.org/browse/UNDERTOW-180. > > Looking at the code it appears that AsyncSenderImpl also has this issue, I > will fix it up (https://issues.jboss.org/browse/UNDERTOW-385). > > Stuart > > ----- Original Message ----- > > From: "Edgar Espina" > > To: undertow-dev at lists.jboss.org > > Sent: Tuesday, 10 February, 2015 10:36:20 PM > > Subject: [undertow-dev] transfer-encoding vs content-length with small > response > > > > Hi, > > > > I know that Undertow figure it out a content-length or transfer-encoding > > header when none of them was set. That's good and it works as expected. > > > > It seems to be a problem when you explicitly set the "Transfer-Encoding" > > header bc Undertow, still add the Content-Length (on small responses?) > but > > it doesn't remove the Transfer-Encoding header. > > > > On such cases, the response contains both headers, which I think it's > wrong, > > no? > > > > -- > > edgar > > > > _______________________________________________ > > undertow-dev mailing list > > undertow-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/undertow-dev > -- edgar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150218/f4adaea1/attachment.html From sdouglas at redhat.com Wed Feb 18 21:42:30 2015 From: sdouglas at redhat.com (Stuart Douglas) Date: Wed, 18 Feb 2015 21:42:30 -0500 (EST) Subject: [undertow-dev] transfer-encoding vs content-length with small response In-Reply-To: References: <881684254.13392097.1424057345688.JavaMail.zimbra@redhat.com> Message-ID: <943575259.15571828.1424313750670.JavaMail.zimbra@redhat.com> Its not exactly forbidden, although it is not really required either. I will look at changing Undertow to not send this when it is not required. Stuart ----- Original Message ----- > From: "Edgar Espina" > To: "Stuart Douglas" > Cc: undertow-dev at lists.jboss.org > Sent: Thursday, 19 February, 2015 8:56:18 AM > Subject: Re: [undertow-dev] transfer-encoding vs content-length with small response > > Thank you, Stuart. > > I do have a related question: should a 304 response set a Content-Length: > 0? Don't think so, right? > > Today, Undertow set a content-length of 0 on 304 responses. > > On Mon, Feb 16, 2015 at 12:29 AM, Stuart Douglas > wrote: > > > This is indeed a bug, however it should have been fixed as part of > > https://issues.jboss.org/browse/UNDERTOW-180. > > > > Looking at the code it appears that AsyncSenderImpl also has this issue, I > > will fix it up (https://issues.jboss.org/browse/UNDERTOW-385). > > > > Stuart > > > > ----- Original Message ----- > > > From: "Edgar Espina" > > > To: undertow-dev at lists.jboss.org > > > Sent: Tuesday, 10 February, 2015 10:36:20 PM > > > Subject: [undertow-dev] transfer-encoding vs content-length with small > > response > > > > > > Hi, > > > > > > I know that Undertow figure it out a content-length or transfer-encoding > > > header when none of them was set. That's good and it works as expected. > > > > > > It seems to be a problem when you explicitly set the "Transfer-Encoding" > > > header bc Undertow, still add the Content-Length (on small responses?) > > but > > > it doesn't remove the Transfer-Encoding header. > > > > > > On such cases, the response contains both headers, which I think it's > > wrong, > > > no? > > > > > > -- > > > edgar > > > > > > _______________________________________________ > > > undertow-dev mailing list > > > undertow-dev at lists.jboss.org > > > https://lists.jboss.org/mailman/listinfo/undertow-dev > > > > > > -- > edgar > From espina.edgar at gmail.com Thu Feb 19 11:21:48 2015 From: espina.edgar at gmail.com (Edgar Espina) Date: Thu, 19 Feb 2015 13:21:48 -0300 Subject: [undertow-dev] response cookies version 1 Message-ID: Hi, Expires attribute isn't set when cookie version = 1. For example: cookie.setMaxAge(60); Includes a correct Max-Age attribute but the Expires attributes is missing. I believe the Expires attribute is optional when max-age is set, but I also think some legacy browsers (ie <=8) ignore the Max-Age attribute too. Should undertow set the Expires attribute when version = 1? Thanks. -- edgar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150219/2a05bb51/attachment.html From sirsri at gmail.com Wed Feb 25 13:24:48 2015 From: sirsri at gmail.com (Sri) Date: Wed, 25 Feb 2015 13:24:48 -0500 Subject: [undertow-dev] Using undertow to create a net server Message-ID: <6983B673-4AF2-4B7C-84F5-2C165E6E98B8@gmail.com> How can I setup undertow to create a simple net server instead of a http server. From sdouglas at redhat.com Wed Feb 25 20:41:22 2015 From: sdouglas at redhat.com (Stuart Douglas) Date: Wed, 25 Feb 2015 20:41:22 -0500 (EST) Subject: [undertow-dev] Using undertow to create a net server In-Reply-To: <6983B673-4AF2-4B7C-84F5-2C165E6E98B8@gmail.com> References: <6983B673-4AF2-4B7C-84F5-2C165E6E98B8@gmail.com> Message-ID: <292243412.21922612.1424914882355.JavaMail.zimbra@redhat.com> I am not sure what you mean? Stuart ----- Original Message ----- > From: "Sri" > To: undertow-dev at lists.jboss.org > Sent: Thursday, 26 February, 2015 2:24:48 AM > Subject: [undertow-dev] Using undertow to create a net server > > > How can I setup undertow to create a simple net server instead of a http > server. > > > _______________________________________________ > undertow-dev mailing list > undertow-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/undertow-dev > From sirsri at gmail.com Wed Feb 25 20:57:05 2015 From: sirsri at gmail.com (Sri) Date: Wed, 25 Feb 2015 20:57:05 -0500 Subject: [undertow-dev] Using undertow to create a net server In-Reply-To: <292243412.21922612.1424914882355.JavaMail.zimbra@redhat.com> References: <6983B673-4AF2-4B7C-84F5-2C165E6E98B8@gmail.com> <292243412.21922612.1424914882355.JavaMail.zimbra@redhat.com> Message-ID: <9CD71E0A-7B12-43B9-A166-EF9C2782EA9D@gmail.com> Not sure if you have seen vertx...but you create a http server or a simple net server for vanilla somet based communication. However, I don't like vertx because it tries to solve too many things for too many people. I am looking for a simple event driven web server which I can also use for accepting data through a simple server socket. Hope this explains my use case. > On Feb 25, 2015, at 8:41 PM, Stuart Douglas wrote: > > I am not sure what you mean? > > Stuart > > ----- Original Message ----- >> From: "Sri" >> To: undertow-dev at lists.jboss.org >> Sent: Thursday, 26 February, 2015 2:24:48 AM >> Subject: [undertow-dev] Using undertow to create a net server >> >> >> How can I setup undertow to create a simple net server instead of a http >> server. >> >> >> _______________________________________________ >> undertow-dev mailing list >> undertow-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/undertow-dev >>