Code Monkey home page Code Monkey logo

teajs's People

Contributors

ondras avatar ryanaxp avatar tamerrizk avatar

teajs's Issues

Process API

http://code.google.com/p/v8cgi/issues/detail?id=16

Original issue reported on code.google.com by ondrej.zara on 20 Jul 2012 at 7:46

scons -h fails when v8_path does not exist

exception: /usr/local/src/teajs# scons -h scons: Reading SConscript files ...  
scons: *** Path for option v8_path does not exist: ../v8 File 
"/usr/local/src/teajs/SConstruct", line 372, in <module>

Original issue reported on code.google.com by ondrej.zara on 25 Mar 2013 at 2:15

Missing cookies for some browsers

What steps will reproduce the problem?
1. Send a request with 'Cookie: aaa=bbb;ccc=ddd";
2. request.cookie['ccc'] does not exist.
3.

What is the expected output? What do you see instead?
ddd.  undefined.

What version of the product are you using? On what operating system?
ubuntu, teajs 0.9.4

Please provide any additional information below.


To fix this, change...

http.js:498
        var all = this._headers["HTTP_COOKIE"].split("; ");
        for (var i=0, len=all.length;i<len;i++) {
                var row = all[i];
                var eq = row.indexOf("=");
                var name = row.substring(0,eq);


to...


http.js:498
        var all = this._headers["HTTP_COOKIE"].split(";");
        for (var i=0, len=all.length;i<len;i++) {
                var row = all[i];
                var eq = row.indexOf("=");
                var name = row.substring(0,eq);
                name=name.trim();


Original issue reported on code.google.com by [email protected] on 16 Jan 2013 at 1:26

postgres_fe.h not found, only used for TRUE and FALSE which is not pgsql-specific

-*- mode: compilation; default-directory: "~/teajs/" -*-
Compilation started at Fri Nov 23 21:19:53

scons v8_path=/usr/lib64 binary_b=1 pgsql=1 
scons: Reading SConscript files ...
Checking for C header file sys/mman.h... (cached) yes
Checking for C function sleep()... (cached) yes
Checking for C function inet_pton()... (cached) yes
Checking for C function inet_ntop()... (cached) yes
Checking for C library v8... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/lib/binary-b/bytestorage-b.os -c -Wall -O3 -fPIC -DHAVE_MMAN_H 
-DHAVE_SLEEP -DHAVE_PTON -DHAVE_NTOP -DCONFIG_PATH=/etc/teajs.conf 
-DVERSION=0.9.5~dev -Dposix -DDSO_EXT=so -Isrc -I/usr/lib64/include 
src/lib/binary-b/bytestorage-b.cc
g++ -o src/lib/pgsql/pgsql.os -c -Wall -O3 -fPIC -DHAVE_MMAN_H -DHAVE_SLEEP 
-DHAVE_PTON -DHAVE_NTOP -DCONFIG_PATH=/etc/teajs.conf -DVERSION=0.9.5~dev 
-Dposix -DDSO_EXT=so -Isrc -I/usr/lib64/include "-I`/usr/bin/pg_config 
--includedir`" src/lib/pgsql/pgsql.cc
src/lib/pgsql/pgsql.cc:40:29: fatal error: postgres_fe.h: No such file or 
directory
compilation terminated.
scons: *** [src/lib/pgsql/pgsql.os] Error 1
scons: building terminated because of errors.

Compilation exited abnormally with code 2 at Fri Nov 23 21:19:55

Since the only part of pgsql you’re intending to use is the client library, 
you must follow the rules for using the client library. The docs say: 
http://www.postgresql.org/docs/9.2/interactive/libpq-build.html , or 
“#include <libpq-fe.h>”—nothing about postgres_fe.h, which isn’t 
installed into pg_config --includedir anyways.

ohnobinki@gentoodcxdelllappy ~/teajs $ qlist -e postgresql-base | grep -e 
postgres_fe\\.h
/usr/include/postgresql-9.2/internal/postgres_fe.h
/usr/include/postgresql-9.2/server/postgres_fe.h
ohnobinki@gentoodcxdelllappy ~/teajs $ pg_config --includedir
/usr/include/postgresql-9.2

So, I suggest to use define TRUE and FALSE following the convention anyone else 
does.

Original issue reported on code.google.com by ohnobinki on 24 Nov 2012 at 2:29

Attachments:

Failure in Base64 (probably a buffer issue)

The attached code, along with formdef.txt which contains 156kB of base 64 text 
will lock up with both cpus pegged at 100%
Some debug in the base64.js code shows that it dies repeatedly at the same 
point in the loop.


I am using teajs 0.9.4 on Windows 7 32-bit on a core2 duo PC

Original issue reported on code.google.com by [email protected] on 14 May 2013 at 9:01

Attachments:

FIX: request.header() doens't return header value

in http.js line 65, change:

ServerRequest.prototype.header = function(name) {
/*--*/  var n = "HTTP_"+name.toUpperCase().replace(/-/g,"_");
    return (n in this._headers ? this._headers[n] : null);
}

To

ServerRequest.prototype.header = function(name) {
/*--*/  var n = name.toUpperCase().replace(/-/g,"_");
    return (n in this._headers ? this._headers[n] : null);
}


Original issue reported on code.google.com by [email protected] on 6 Jan 2013 at 11:35

Escaping $ in template

http://code.google.com/p/v8cgi/issues/detail?id=76

Original issue reported on code.google.com by ondrej.zara on 20 Jul 2012 at 7:46

Buffer class needs to force GC upon malloc failure

The buffer class should force a GC and retry when buffer malloc fails.  It is 
entirely feasible that the reason for the malloc failure is many dead but 
uncollected buffers.  If there is room to allocate the buffer object but not 
enough to allocate the storage then the allocation will fail even though there 
may be potentially huge amounts of free memory.

It also seems odd that it is possible to have upwards of 2GB in buffer 
allocations before garbage collection occurs.  This is incredibly unfriendly to 
other applications (let alone the buffer malloc call.) 

Original issue reported on code.google.com by [email protected] on 20 May 2013 at 3:14

Implicit cast warning in bytestorage

-*- mode: compilation; default-directory: "~/teajs/" -*-
Compilation started at Fri Nov 23 21:14:01

scons v8_path=/usr/lib64 binary_b=1 pgsql=1 
scons: Reading SConscript files ...
Checking for C header file sys/mman.h... (cached) yes
Checking for C function sleep()... (cached) yes
Checking for C function inet_pton()... (cached) yes
Checking for C function inet_ntop()... (cached) yes
Checking for C library v8... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/lib/binary-b/bytestorage-b.os -c -Wall -O3 -fPIC -DHAVE_MMAN_H 
-DHAVE_SLEEP -DHAVE_PTON -DHAVE_NTOP -DCONFIG_PATH=/etc/teajs.conf 
-DVERSION=0.9.5~dev -Dposix -DDSO_EXT=so -Isrc -I/usr/lib64/include 
src/lib/binary-b/bytestorage-b.cc
src/lib/binary-b/bytestorage-b.cc: In member function 'unsigned char 
ByteStorageB::getByte(size_t)':
src/lib/binary-b/bytestorage-b.cc:102:38: warning: converting to non-pointer 
type 'unsigned char' from NULL [-Wconversion-null]
scons: done building targets.

Compilation finished at Fri Nov 23 21:14:02

Original issue reported on code.google.com by ohnobinki on 24 Nov 2012 at 2:15

Attachments:

Building works on Ubuntu, but fails on CentOS

Clone the teajs repository on a machine with CentOS 6. Execute scons in that 
repository.

Expecting successful compile. Getting apr.h-related errors.

Changing SConstruct, setting apr_include to /usr/include/apr-1 instead of 
/usr/include/apr-1.0, proves a working workaround.

Original issue reported on code.google.com by [email protected] on 24 Nov 2012 at 1:06

session garbage cleaner is removing all tmp files often

What steps will reproduce the problem?
1. Make a file in /tmp owned by the web server's user.
2. use new Session()  lots of times for an hour.
3. Eventually the file that was created will be removed & the script slows down 
alot cause there're lots of files to clean up in /tmp

What version of the product are you using? On what operating system?
teajs

Please provide any additional information below.
Here is a patch to fix these problems.
Also, the default path for the session in v8cgi.conf should be something other 
than /tmp

Original issue reported on code.google.com by [email protected] on 13 Apr 2013 at 4:02

Attachments:

database support including ODBC

http://code.google.com/p/v8cgi/issues/detail?id=92

Original issue reported on code.google.com by ondrej.zara on 20 Jul 2012 at 7:48

how to debug the javascript in teajs

hi, i use teajs to develep a app , but i don't know how to debug the javascript 

Does have a tool like node-inspector the debug the javascript ?

Thanks

Original issue reported on code.google.com by [email protected] on 16 Dec 2013 at 11:14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.