simpleweb-support Mailing List for Simple (Page 21)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Oscar P. <os...@te...> - 2007-03-11 10:09:17
|
Hi, server load will be about 10 to 15 clients (it's a closed system) issuing continuous requests (basically thumbnails pages) and I need to have load times of less than 0.5 seconds. By the moment I'm testing with only one client and the response time is of about 2-3 seconds, so it's too slow. I'm serving files by reading them (with a 4kb buffer) and writing to response's OutputStream directly. But I'm caching files in memory, so files are only read the first time they are requested. I'll try FileEngine and test if it improves performance. Thank you very much. Òscar Pérez En/na Jeff Nichols ha escrit: > Hi Oscar, > > Where is your performance issue? Raw speed when handling a single > request, or only under load? > > Also, how are you serving those files? Are you reading and writing > them manually, or are you using the built-in FileEngine? > > Jeff > > > On Mar 10, 2007, at 1:18 PM, Oscar Perez wrote: > > >> Hi, >> first of all, I would like to congratulate Simpleweb's creators for >> their work. Now it's really easy to embbed a web server into an >> existing >> Java application. >> But I've got a question: is there a way to tune performance. I mean, >> I've implemented a server with just one service. This service simply >> reads files from the filesystem and returns them to the client. But >> I'm >> unable to achieve the required performance and I wonder if I can >> tune it >> to be faster. >> >> Thanks a lot for your help and congratulations again! >> >> Oscar Pérez. >> >> ---------------------------------------------------------------------- >> --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Simpleweb-Support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpleweb-support >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > |
From: Niall G. <gal...@ya...> - 2007-03-10 18:52:56
|
Hi Oscar,=0A=0AThere are several ways to tune the performance. Depending on= your requirements, in order tune it I would need to know:=0A=0A1) Are you = using pipelines or connection close?=0A2) How large are the files you are s= erving?=0A3) What kind of concurrency do you need to serve?=0A=0ABy default= the server is configured to deal with high concurrency, as a result respon= siveness may not be optimal.=0A=0A Niall Gallagher=0A=0A----- Original Mess= age ----=0AFrom: Oscar Perez <os...@te...>=0ATo: simpleweb-suppo= rt...@li...=0ASent: Saturday, March 10, 2007 4:18:04 AM=0ASubj= ect: [Simpleweb-Support] Speed in serving requests=0A=0AHi,=0Afirst of all,= I would like to congratulate Simpleweb's creators for =0Atheir work. Now i= t's really easy to embbed a web server into an existing =0AJava application= .=0ABut I've got a question: is there a way to tune performance. I mean, = =0AI've implemented a server with just one service. This service simply =0A= reads files from the filesystem and returns them to the client. But I'm =0A= unable to achieve the required performance and I wonder if I can tune it = =0Ato be faster.=0A=0AThanks a lot for your help and congratulations again!= =0A=0AOscar P=E9rez.=0A=0A-------------------------------------------------= ------------------------=0ATake Surveys. Earn Cash. Influence the Future of= IT=0AJoin SourceForge.net's Techsay panel and you'll get the chance to sha= re your=0Aopinions on IT & business topics through brief surveys-and earn c= ash=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV=0A_______________________________________________=0ASimpleweb-Su= pport mailing list=0AS...@li...=0Ahttps://list= s.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A=0A =0A= ___________________________________________________________________________= _________=0ANeed Mail bonding?=0AGo to the Yahoo! Mail Q&A for great tips f= rom Yahoo! Answers users.=0Ahttp://answers.yahoo.com/dir/?link=3Dlist&sid= =3D396546091 |
From: Jeff N. <je...@ne...> - 2007-03-10 12:28:20
|
Hi Oscar, Where is your performance issue? Raw speed when handling a single =20 request, or only under load? Also, how are you serving those files? Are you reading and writing =20 them manually, or are you using the built-in FileEngine? Jeff On Mar 10, 2007, at 1:18 PM, Oscar Perez wrote: > Hi, > first of all, I would like to congratulate Simpleweb's creators for > their work. Now it's really easy to embbed a web server into an =20 > existing > Java application. > But I've got a question: is there a way to tune performance. I mean, > I've implemented a server with just one service. This service simply > reads files from the filesystem and returns them to the client. But =20= > I'm > unable to achieve the required performance and I wonder if I can =20 > tune it > to be faster. > > Thanks a lot for your help and congratulations again! > > Oscar P=E9rez. > > ----------------------------------------------------------------------=20= > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to =20 > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?=20 > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Kenneth F. <ke...@ne...> - 2007-03-10 12:18:25
|
Hi I will be away from the 7th March till 14th March, and will be back only on the 15th. If you have any urgent matters, please contact the following persons Technical issues: Ciek Yi (ci...@ne... / +60123260583) Other issues: Edwin Tay (ed...@ne... / +60123165148) Thank you. |
From: Oscar P. <os...@te...> - 2007-03-10 12:18:13
|
Hi, first of all, I would like to congratulate Simpleweb's creators for their work. Now it's really easy to embbed a web server into an existing Java application. But I've got a question: is there a way to tune performance. I mean, I've implemented a server with just one service. This service simply reads files from the filesystem and returns them to the client. But I'm unable to achieve the required performance and I wonder if I can tune it to be faster. Thanks a lot for your help and congratulations again! Oscar Pérez. |
From: Niall G. <gal...@ya...> - 2007-02-13 19:45:55
|
Hi,=0A=0AYes, it is creating the defaul number of handler threads. There is= a way to reduce this by creating a pipeline handler using the following:= =0A=0A=0APipelineHandler handler =3D PipelineHandlerFactory.getInstance(han= dler, 2, 200);=0A=0AThis will create a pipeline handler with 2 threads and = a maximum wait time of 200 milliseconds. This should reduce the number of t= hreads being used.=0A =0ANiall Gallagher=0A=0A----- Original Message ----= =0AFrom: Alexandre Denault <ale...@ad...>=0ATo: simpleweb= -su...@li...=0ASent: Tuesday, February 13, 2007 7:33:55 A= M=0ASubject: [Simpleweb-Support] Simple Threads?=0A=0AHi,=0A=0A I've emb= edded Simple in one of my project and it's doing wonders.=0AHowever, I do w= hat a question related to Simple and threading.=0A=0A I've been debuggin= g my application and I just noticed that when=0AConnectionFactory.getConnec= tion(handler); is called, almost 40 threads=0Aare created? Is there a reaso= n that I need 40 threads to deal with http=0Aresponses? Can I scale it down= ? On average, I only have 1 user connected=0Ato the server.=0A=0AAlex=0A=0A= -------------------------------------------------------------------------= =0AUsing Tomcat but need to do more? Need to support web services, security= ?=0AGet stuff done quickly with pre-integrated technology to make your job = easier.=0ADownload IBM WebSphere Application Server v.1.0.1 based on Apache= Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D26= 3057&dat=3D121642=0A_______________________________________________=0ASimpl= eweb-Support mailing list=0AS...@li...=0Ahttps= ://lists.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A= =0A_______________________________________________________________________= _____________=0AFood fight? Enjoy some healthy debate =0Ain the Yahoo! Answ= ers Food & Drink Q&A.=0Ahttp://answers.yahoo.com/dir/?link=3Dlist&sid=3D396= 545367 |
From: Alexandre D. <ale...@ad...> - 2007-02-13 15:34:23
|
Hi, I've embedded Simple in one of my project and it's doing wonders. However, I do what a question related to Simple and threading. I've been debugging my application and I just noticed that when ConnectionFactory.getConnection(handler); is called, almost 40 threads are created? Is there a reason that I need 40 threads to deal with http responses? Can I scale it down? On average, I only have 1 user connected to the server. Alex |
From: petite_abeille <pet...@ma...> - 2007-02-01 18:26:18
|
Hello, This is not strictly speaking related to Simple per se, but... perhaps someone could point me to the right direction nonetheless... To make a long story short, I'm a bit confused on how the different HTTP entity transformations work together... or not. In other words, from an HTTP server perspective, how does one properly combine things like entity tags, conditional requests, ranges and content encoding to name a few? Even after going through Jeffrey C. Mogul's "Clarifying the Fundamentals of HTTP" and such, I'm not the wiser :P http://www2002.org/CDROM/refereed/444.pdf Any pointers, guidelines, opinions or advises very welcome :) Thanks in advance. Cheers, PA. |
From: Bat <bap...@gm...> - 2007-01-31 09:49:01
|
Hi Niall Thanks for your help, it now works perfectly... See you Baptiste |
From: Niall G. <gal...@ya...> - 2007-01-30 20:40:59
|
Hi Bat, Well what is happening here is that the decoder for URL's assumes UTF-8. So it will decode in UTF-8 until it sees an illegal char (only legal encodings are ISO-8859-1 and UTF-8 characters). In the case that you do not have control then you need to do the following: String url = Request.getURI(); This contains an unmodified URI string, from here u need to do the decoding yourself, perhaps using the java URLDecoder with an acceptible charset setting. Niall --- Bat <bap...@gm...> wrote: > Hi Nial > > Thanks for your answer but I'm not sure to get what > you mean... > > Actually I'm writting Bittorrent softwares (client, > tracker, publisher, > ...) and I use Simple as the web server that handle > the request for > uploading torrents and providing peers information. > > The protocol requires some data to be sent to the > tracker as parameters, > for example file or peer id. These values are 20 > random bytes and could > therefore be any value between 00 and FF, and could > possibly not > represent any real character. The point is I don't > have to display their > value as a string, but just get the value (in hex > for example...). > > My problem is, Simple does something that I don't > get, because sometimes > (but rarely), it works and the value I get is > correct, but in most > cases, the value is wrong and there are missing > byte(s). In short, the > String (or byte[] I would prefer) should ALWAYS be > of length 20, but > this is not the case... > > So I don't understand your answer about base64, > since the String I get > with the method getParameter() is of the wrong > length and could > therefore not serve... > > By the way, if I'm missing something, I would really > appreciate if you > could explain me a bit farther... > > Thank you... > Baptiste > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html |
From: Bat <bap...@gm...> - 2007-01-30 00:17:03
|
Hi Nial Thanks for your answer but I'm not sure to get what you mean... Actually I'm writting Bittorrent softwares (client, tracker, publisher, ...) and I use Simple as the web server that handle the request for uploading torrents and providing peers information. The protocol requires some data to be sent to the tracker as parameters, for example file or peer id. These values are 20 random bytes and could therefore be any value between 00 and FF, and could possibly not represent any real character. The point is I don't have to display their value as a string, but just get the value (in hex for example...). My problem is, Simple does something that I don't get, because sometimes (but rarely), it works and the value I get is correct, but in most cases, the value is wrong and there are missing byte(s). In short, the String (or byte[] I would prefer) should ALWAYS be of length 20, but this is not the case... So I don't understand your answer about base64, since the String I get with the method getParameter() is of the wrong length and could therefore not serve... By the way, if I'm missing something, I would really appreciate if you could explain me a bit farther... Thank you... Baptiste |
From: Niall G. <gal...@ya...> - 2007-01-29 23:26:23
|
Hi Baptiste, Just use base64, or some other way to escape the parameter. You should not really send binary in parameter values. Niall --- Baptiste Dubuis <bap...@gm...> wrote: > Hi again... > > Actually, I think my problems comes from the fact > that the parameters are > stored as String, and not as byte[] or something, > which means it must have > been translated using a given charset... But maybe > this charset just drop > characters that it does not know, as they are > written in %xy notation... > > Is it possible? And if so, how could I access the > true value? Or maybe > should I modify the request class? > > Thank you for any answer... > > Bat > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html |
From: Baptiste D. <bap...@gm...> - 2007-01-28 20:49:14
|
Hi again... Actually, I think my problems comes from the fact that the parameters are stored as String, and not as byte[] or something, which means it must have been translated using a given charset... But maybe this charset just drop characters that it does not know, as they are written in %xy notation... Is it possible? And if so, how could I access the true value? Or maybe should I modify the request class? Thank you for any answer... Bat |
From: Bat <bap...@gm...> - 2007-01-27 12:23:05
|
Hi I'm trying to read urlencoded parameters of a request with the method getParameters() of a Request object. The problem is that the values that are returned does not always match the effective urlencoded value... Here is an example. According to Ethereal capture, the packet sent contains the parameter and value: info_hash=%B2%E3%FA%0F%DEd%EE%2F%26%B5%13%F2%FE%9E!t%EA%B7%AC%A1 but the value I get using getParameter("info_hash") is %B2%E3%FA%0F%DEd%EE%2F%26%B5%13%F2%FE%9E!t%3F%A1 which is not the same... Anybody knows something about this problem? Thanks in advance... See you guys... Bat |
From: Juraj B. <ast...@gm...> - 2007-01-17 12:20:55
|
Hello, thank you for your last reply. > The responses will seem slow if you have set a bad > default wait peroid. This is the length of time an > inactive connection is put to sleep. So, if you open > the connection and don't write anything for a couple > of milliseconds then the connection is put to sleep. > To configure this property the following can be used: > > ProtocolHandler myProtocolHandler = new > MyProtocolHandler(); > > PipelineHandler handler = > PipelineHandlerFactory.getInstance(myProtocolHandler, > 20, 100); Thank you, this will probably help. So one question, if I read from protocol Request input stream, will it block? > With regards to the request and response events sent > to the pipeline handler they are sent my many threads > so you should not synchronize the protocol handler as > this will cause blocking and thus serialization of > your request processing. Also, why are you creating a > new thread within the protocol handler??? I thought, that I have to exit from handler as soon as possible, because I thought other events are processed from the pipeline by the same thread, but it's because I was evaluating http://docs.safehaus.org/display/ASYNCWEB/Home I've read that documentation and mixed it up. I've fixed it up. My protocol handler is not synchronized, but the question is, does Simple do some requests statistics? (I need connections per second). Creating a new thread just for incrementing counter does not seem to be a good idea to me and it has to be synchronized. If I could get that information from the pipeline, it would be great. > If you want to use it as a reverse proxy you are > better off sending the request with the thread > dispacthed to the protocol handler, and then queuing > request socket. Are there some classes, that would enable me to do this? (MessageQueue)? I'm just studying javadocs, but there are plenty of classes and it takes a while to get the whole picture. > After the request is sent you can > queue the socket and have another thread pool read in > the response perform some processing/translation of > the response and deliver it over the socket. This > would ensure that you do not limit the number of > outstanding request with the number of threads used in > the server. Yes, that's what I would like to do. Thanks, Juraj. |
From: Niall G. <gal...@ya...> - 2007-01-16 20:23:49
|
Hi, The responses will seem slow if you have set a bad default wait peroid. This is the length of time an inactive connection is put to sleep. So, if you open the connection and don't write anything for a couple of milliseconds then the connection is put to sleep. To configure this property the following can be used: ProtocolHandler myProtocolHandler = new MyProtocolHandler(); PipelineHandler handler = PipelineHandlerFactory.getInstance(myProtocolHandler, 20, 100); This will set the default wait to 100 milliseconds. So responses should be quicker. Also, much of the effort of handling a connection is put into setting up the connection for pipelining (i.e many requests per connection). So request per socket is not going to work well. With regards to the request and response events sent to the pipeline handler they are sent my many threads so you should not synchronize the protocol handler as this will cause blocking and thus serialization of your request processing. Also, why are you creating a new thread within the protocol handler??? If you want to use it as a reverse proxy you are better off sending the request with the thread dispacthed to the protocol handler, and then queuing request socket. After the request is sent you can queue the socket and have another thread pool read in the response perform some processing/translation of the response and deliver it over the socket. This would ensure that you do not limit the number of outstanding request with the number of threads used in the server. Niall --- Juraj Bednar <ast...@gm...> wrote: > Hello, > > I am writing a ProtocolHandler, which basically > works, but is quite > slow. I would like to ask, if handle() method is > launched in separate > thread or not (i.e. if it can block, or I should > create a new Thread > and do my work there). > > I have an application, which have two states, in > one, it can return > from handle immediately (returning static redirect) > and in other mode, > it has to block, so I would like to manage, when to > create new thread > and when not in a new thread (it is not a good idea > to create new > thread just for returning simple static string). > > Is there some performance tuning howto? I would > like to handle > thousands of connections. > > One part of my application is a reverse proxy. Has > someone done that > before? Currently I am using new socket per request, > which is of > course not very effective... > > > Thank you, > > Juraj. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher ____________________________________________________________________________________ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. |
From: Juraj B. <ast...@gm...> - 2007-01-16 18:04:21
|
Hello, I am writing a ProtocolHandler, which basically works, but is quite slow. I would like to ask, if handle() method is launched in separate thread or not (i.e. if it can block, or I should create a new Thread and do my work there). I have an application, which have two states, in one, it can return from handle immediately (returning static redirect) and in other mode, it has to block, so I would like to manage, when to create new thread and when not in a new thread (it is not a good idea to create new thread just for returning simple static string). Is there some performance tuning howto? I would like to handle thousands of connections. One part of my application is a reverse proxy. Has someone done that before? Currently I am using new socket per request, which is of course not very effective... Thank you, Juraj. |
From: Carfield Y. <car...@gm...> - 2007-01-11 17:01:08
|
There is upload package for simple http://sourceforge.net/project/downloading.php?group_id=62369&use_mirror=nchc&filename=simple-upload-0.3.4.tar.gz&35614349 On 1/11/07, Baptiste Dubuis <bap...@gm...> wrote: > Hi > > I'm new at using the Simple http server. > I'm trying to read Mutipart form-data request with Simple, but I don't know > how to do it. > Could anyone help me please? > Thanks a lot... > > Bat > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > |
From: Baptiste D. <bap...@gm...> - 2007-01-11 15:33:42
|
Hi I'm new at using the Simple http server. I'm trying to read Mutipart form-data request with Simple, but I don't know how to do it. Could anyone help me please? Thanks a lot... Bat |
From: Jerome L. <co...@no...> - 2006-12-21 18:34:39
|
Great, that worked perfectly! I didn't expect the request to share the = same attributes as the pipeline. I'm looking forward to the next release! Best regards, Jerome =20 > -----Message d'origine----- > De : sim...@li...=20 > [mailto:sim...@li...] De=20 > la part de Niall Gallagher > Envoy=E9 : jeudi 21 d=E9cembre 2006 18:37 > =C0 : Simple support and user issues > Objet : Re: [Simpleweb-Support] Unable to get the remote client port >=20 > Hi, >=20 > If you use=20 > Request.getAttribute(MyConstants.SOCKET_IDENTIFIER) you will=20 > get the socket. I hope to be able to release the next version=20 > in a month or two, as I am still refactoring/implementing a=20 > few things.=20 > =20 > Niall Gallagher >=20 > ----- Original Message ---- > From: Jerome Louvel <co...@no...> > To: Simple support and user issues=20 > <sim...@li...> > Sent: Thursday, December 21, 2006 5:21:01 PM > Subject: Re: [Simpleweb-Support] Unable to get the remote client port >=20 >=20 > Hi Niall, >=20 > Thanks for the code snippet. I created a subclass of=20 > BufferedPipelineFactory > where I was able to set the socket as an attribute to the=20 > pipeline (using a > put() method).=20 >=20 > Now I don't know how to get the pipeline used to serve a=20 > request. Any idea? >=20 > BTW, when do you plan to release the next version of Simple?=20 >=20 > Best regards, > Jerome =20 >=20 > > -----Message d'origine----- > > De : sim...@li...=20 > > [mailto:sim...@li...] De=20 > > la part de Niall Gallagher > > Envoy=E9 : jeudi 21 d=E9cembre 2006 17:16 > > =C0 : Simple support and user issues > > Objet : Re: [Simpleweb-Support] Unable to get the remote client port > >=20 > > Hi Jerome, > >=20 > > The way you can do this is by creating a PipelineFactory.=20 > > This can be added to the connection you create. For an=20 > > example look at the BufferedPipelineFactory. Here you can=20 > > create a pipeline, and add the socket as an attribute. For example. > >=20 > > public class MyPipelineFactory implements PipelineFactory { > > public Pipline getPipeline(Socket sock) { > > Pipeline pipe =3D new BufferedPipeline(sock); > > pipe.set(MyConstants.SOCKET_IDENTIFIER, sock); > > return pipe; > > } > > } > >=20 > > I have been thinking of adding a way to get the client port=20 > > to the request without the need for a pipeline factory as it=20 > > has been requested before. Perhaps in the next release which=20 > > already contains quite a few new features. > > =20 > > Niall Gallagher > >=20 > > ----- Original Message ---- > > From: Jerome Louvel <co...@no...> > > To: sim...@li... > > Sent: Thursday, December 21, 2006 3:45:41 PM > > Subject: [Simpleweb-Support] Unable to get the remote client port > >=20 > >=20 > > Hi, > >=20 > > I have to get the remote client port number in order to=20 > > implement the IDENT > > protocol. I couldn't find a way to get this information=20 > from a Request > > instance. I can't even cast it to a MonitoredRequest in order=20 > > to access to > > the internal socket. > >=20 > > Could it be possible to extend the Request interface with=20 > > this property? > >=20 > > Best regards, > > Jerome Louvel > > -- > > http://www.restlet.org > >=20 > >=20 > > -------------------------------------------------------------- > > ----------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the=20 > > chance to share your > > opinions on IT & business topics through brief surveys -=20 > and earn cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > > &CID=3DDEVDEV > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > >=20 > >=20 > >=20 > >=20 > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around=20 > > http://mail.yahoo.com=20 > >=20 > > -------------------------------------------------------------- > > ----------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the=20 > > chance to share your > > opinions on IT & business topics through brief surveys -=20 > and earn cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > > &CID=3DDEVDEV > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge &CID=3DDEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge &CID=3DDEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2006-12-21 17:37:35
|
Hi,=0A=0AIf you use Request.getAttribute(MyConstants.SOCKET_IDENTIFIER) you= will get the socket. I hope to be able to release the next version in a mo= nth or two, as I am still refactoring/implementing a few things. =0A =0ANia= ll Gallagher=0A=0A----- Original Message ----=0AFrom: Jerome Louvel <contac= t...@no...>=0ATo: Simple support and user issues <simpleweb-support@list= s.sourceforge.net>=0ASent: Thursday, December 21, 2006 5:21:01 PM=0ASubject= : Re: [Simpleweb-Support] Unable to get the remote client port=0A=0A=0AHi N= iall,=0A=0AThanks for the code snippet. I created a subclass of BufferedPip= elineFactory=0Awhere I was able to set the socket as an attribute to the pi= peline (using a=0Aput() method). =0A=0ANow I don't know how to get the pipe= line used to serve a request. Any idea?=0A=0ABTW, when do you plan to relea= se the next version of Simple? =0A=0ABest regards,=0AJerome =0A=0A> -----M= essage d'origine-----=0A> De : sim...@li...urceforge.= net =0A> [mailto:sim...@li...] De =0A> l= a part de Niall Gallagher=0A> Envoy=E9 : jeudi 21 d=E9cembre 2006 17:16=0A>= =C0 : Simple support and user issues=0A> Objet : Re: [Simpleweb-Support] U= nable to get the remote client port=0A> =0A> Hi Jerome,=0A> =0A> The way yo= u can do this is by creating a PipelineFactory. =0A> This can be added to t= he connection you create. For an =0A> example look at the BufferedPipelineF= actory. Here you can =0A> create a pipeline, and add the socket as an attri= bute. For example.=0A> =0A> public class MyPipelineFactory implements Pipel= ineFactory {=0A> public Pipline getPipeline(Socket sock) {=0A> = Pipeline pipe =3D new BufferedPipeline(sock);=0A> pipe.set(MyConsta= nts.SOCKET_IDENTIFIER, sock);=0A> return pipe;=0A> }=0A> }=0A> = =0A> I have been thinking of adding a way to get the client port =0A> to th= e request without the need for a pipeline factory as it =0A> has been reque= sted before. Perhaps in the next release which =0A> already contains quite = a few new features.=0A> =0A> Niall Gallagher=0A> =0A> ----- Original Messa= ge ----=0A> From: Jerome Louvel <co...@no...>=0A> To: simpleweb-sup= po...@li...=0A> Sent: Thursday, December 21, 2006 3:45:41 PM= =0A> Subject: [Simpleweb-Support] Unable to get the remote client port=0A> = =0A> =0A> Hi,=0A> =0A> I have to get the remote client port number in order= to =0A> implement the IDENT=0A> protocol. I couldn't find a way to get thi= s information from a Request=0A> instance. I can't even cast it to a Monito= redRequest in order =0A> to access to=0A> the internal socket.=0A> =0A> Cou= ld it be possible to extend the Request interface with =0A> this property?= =0A> =0A> Best regards,=0A> Jerome Louvel=0A> --=0A> http://www.restlet.org= =0A> =0A> =0A> ------------------------------------------------------------= --=0A> -----------=0A> Take Surveys. Earn Cash. Influence the Future of IT= =0A> Join SourceForge.net's Techsay panel and you'll get the =0A> chance to= share your=0A> opinions on IT & business topics through brief surveys - an= d earn cash=0A> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsour= ceforge=0A> &CID=3DDEVDEV=0A> _____________________________________________= __=0A> Simpleweb-Support mailing list=0A> Sim...@li...urcefor= ge.net=0A> https://lists.sourceforge.net/lists/listinfo/simpleweb-support= =0A> =0A> =0A> =0A> =0A> __________________________________________________= =0A> Do You Yahoo!?=0A> Tired of spam? Yahoo! Mail has the best spam prote= ction around =0A> http://mail.yahoo.com =0A> =0A> -------------------------= -------------------------------------=0A> -----------=0A> Take Surveys. Ear= n Cash. Influence the Future of IT=0A> Join SourceForge.net's Techsay panel= and you'll get the =0A> chance to share your=0A> opinions on IT & business= topics through brief surveys - and earn cash=0A> http://www.techsay.com/de= fault.php?page=3Djoin.php&p=3Dsourceforge=0A> &CID=3DDEVDEV=0A> ___________= ____________________________________=0A> Simpleweb-Support mailing list=0A>= Sim...@li...=0A> https://lists.sourceforge.net/= lists/listinfo/simpleweb-support=0A=0A=0A----------------------------------= ---------------------------------------=0ATake Surveys. Earn Cash. Influenc= e the Future of IT=0AJoin SourceForge.net's Techsay panel and you'll get th= e chance to share your=0Aopinions on IT & business topics through brief sur= veys - and earn cash=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p= =3Dsourceforge&CID=3DDEVDEV=0A_____________________________________________= __=0ASimpleweb-Support mailing list=0AS...@li...urceforge.n= et=0Ahttps://lists.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A= =0A=0A=0A__________________________________________________=0ADo You Yahoo!= ?=0ATired of spam? Yahoo! Mail has the best spam protection around =0Ahttp= ://mail.yahoo.com |
From: Jerome L. <co...@no...> - 2006-12-21 17:21:21
|
Hi Niall, Thanks for the code snippet. I created a subclass of = BufferedPipelineFactory where I was able to set the socket as an attribute to the pipeline = (using a put() method).=20 Now I don't know how to get the pipeline used to serve a request. Any = idea? BTW, when do you plan to release the next version of Simple?=20 Best regards, Jerome =20 > -----Message d'origine----- > De : sim...@li...=20 > [mailto:sim...@li...] De=20 > la part de Niall Gallagher > Envoy=E9 : jeudi 21 d=E9cembre 2006 17:16 > =C0 : Simple support and user issues > Objet : Re: [Simpleweb-Support] Unable to get the remote client port >=20 > Hi Jerome, >=20 > The way you can do this is by creating a PipelineFactory.=20 > This can be added to the connection you create. For an=20 > example look at the BufferedPipelineFactory. Here you can=20 > create a pipeline, and add the socket as an attribute. For example. >=20 > public class MyPipelineFactory implements PipelineFactory { > public Pipline getPipeline(Socket sock) { > Pipeline pipe =3D new BufferedPipeline(sock); > pipe.set(MyConstants.SOCKET_IDENTIFIER, sock); > return pipe; > } > } >=20 > I have been thinking of adding a way to get the client port=20 > to the request without the need for a pipeline factory as it=20 > has been requested before. Perhaps in the next release which=20 > already contains quite a few new features. > =20 > Niall Gallagher >=20 > ----- Original Message ---- > From: Jerome Louvel <co...@no...> > To: sim...@li... > Sent: Thursday, December 21, 2006 3:45:41 PM > Subject: [Simpleweb-Support] Unable to get the remote client port >=20 >=20 > Hi, >=20 > I have to get the remote client port number in order to=20 > implement the IDENT > protocol. I couldn't find a way to get this information from a Request > instance. I can't even cast it to a MonitoredRequest in order=20 > to access to > the internal socket. >=20 > Could it be possible to extend the Request interface with=20 > this property? >=20 > Best regards, > Jerome Louvel > -- > http://www.restlet.org >=20 >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > &CID=3DDEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > &CID=3DDEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2006-12-21 16:15:42
|
Hi Jerome,=0A=0AThe way you can do this is by creating a PipelineFactory. T= his can be added to the connection you create. For an example look at the B= ufferedPipelineFactory. Here you can create a pipeline, and add the socket = as an attribute. For example.=0A=0Apublic class MyPipelineFactory implement= s PipelineFactory {=0A public Pipline getPipeline(Socket sock) {=0A = Pipeline pipe =3D new BufferedPipeline(sock);=0A pipe.set(MyConst= ants.SOCKET_IDENTIFIER, sock);=0A return pipe;=0A }=0A}=0A=0AI ha= ve been thinking of adding a way to get the client port to the request with= out the need for a pipeline factory as it has been requested before. Perhap= s in the next release which already contains quite a few new features.=0A = =0ANiall Gallagher=0A=0A----- Original Message ----=0AFrom: Jerome Louvel <= co...@no...>=0ATo: sim...@li...=0ASent: = Thursday, December 21, 2006 3:45:41 PM=0ASubject: [Simpleweb-Support] Unabl= e to get the remote client port=0A=0A=0AHi,=0A=0AI have to get the remote c= lient port number in order to implement the IDENT=0Aprotocol. I couldn't fi= nd a way to get this information from a Request=0Ainstance. I can't even ca= st it to a MonitoredRequest in order to access to=0Athe internal socket.=0A= =0ACould it be possible to extend the Request interface with this property?= =0A=0ABest regards,=0AJerome Louvel=0A--=0Ahttp://www.restlet.org=0A=0A=0A-= ------------------------------------------------------------------------=0A= Take Surveys. Earn Cash. Influence the Future of IT=0AJoin SourceForge.net'= s Techsay panel and you'll get the chance to share your=0Aopinions on IT & = business topics through brief surveys - and earn cash=0Ahttp://www.techsay.= com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A____________= ___________________________________=0ASimpleweb-Support mailing list=0ASimp= lew...@li...=0Ahttps://lists.sourceforge.net/lists/l= istinfo/simpleweb-support=0A=0A=0A=0A=0A___________________________________= _______________=0ADo You Yahoo!?=0ATired of spam? Yahoo! Mail has the best= spam protection around =0Ahttp://mail.yahoo.com |
From: Jerome L. <co...@no...> - 2006-12-21 15:46:01
|
Hi, I have to get the remote client port number in order to implement the IDENT protocol. I couldn't find a way to get this information from a Request instance. I can't even cast it to a MonitoredRequest in order to access to the internal socket. Could it be possible to extend the Request interface with this property? Best regards, Jerome Louvel -- http://www.restlet.org |
From: Carfield Y. <car...@ca...> - 2006-12-10 14:13:25
|
I think it will be nice if the user of simpleweb can attach a exception handler for Processor so that error like OutOfMemoryError can be catch and handled |