Git Product home page Git Product logo

janosh's People

Contributors

beanieboi avatar kallaballa avatar kintel avatar phaer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

janosh's Issues

Bus error on 20 characters or more.

I am getting a bus error, without a stack strace or something else while trying to send strings which are 20 characters or longer. The bug is reproduceable by running the following minimal lua script...

#!/lounge/bin/janosh -f

function receive(handle, message)
   print(message)
end

Janosh:wsOpen(8080)
Janosh:wsOnReceive(receive)

while true do
   Janosh:sleep(1000)
end

...and pasting the following snippet in your browsers javascript console.

var socket = new WebSocket('ws://10.20.30.40:8080');
socket.onopen = function() { socket.send('a'.repeat(20)); }

...which kills the server process. It works if one sends less than 20 characters.

Any ideas?

On Darwin, add / remove fail in test.sh

Some tests fail on Darwin - add/remove. Needs to be looked into.

seclorum@Darwin-machine:~/Documents/metalab/kallaballa/Janosh.seclorum {(janosh-on-darwin)}
$ ./test.sh

truncate: ok

truncate:46082543134820304

mkarray: ok

mkarray:5095506346131095679

mkobject: ok

mkobject:6033625201148905563

append: ok

append:9510324768122757536

set: ok

set:17106756998089531113

add: failed

add:772402077030743180

remove: failed

remove:772402077030743180

replace: ok

replace:1926185854176296875

copy: ok

copy:7217090941002447847

shift: ok

shift:3752346509794287921

posting values with backslashes

the json the server returns will be broken if the values posted include a backslash.

need to investigate if this is caused by users posting backslash values or if converting to json has a bug.

Malformed JSON received from ScreenInvader

I'm posting this issue to this repo, because Janosh should never return malformed json. I'm going to look into this later on, looks like a problem with with "url". Maybe it's related to #3 ?

{ "active":"false","category":" ","url":" " } ,"browser": { "active":"false","category":"image","url":"http://10.20.30.90/img/power_down_warning.png" } ,"clients": [ "test","BLA" ] ,"display": { "blank":"false","resolution":"1920x1080" } ,"image": { "active":"false","category":"","url":"" } ,"pdf": { "active":"false","category":"","url":"" } ,"player": { "active":"true","category":"youtube","url":"http://youtu.be/IkYfB1C0Zgc" } ,"playlist": { "index":"128","items": [ { "source":"http://www.youtube.com/watch?v=6KKKGpAZHAA","title":"OVERWERK - Daybreak (GoPro HERO3 Edit) [Electro House]","url":"http://r6---sn-uxaxufv-8pxe.googlevideo.com/videoplayback?ratebypass=yes&expire=1426805268&sver=3&dur=304.088&pl=19&ipbits=0&signature=E092A4BB3C79E3AB0EDC78C2425B7A0CFAAEEF78.4FA007BCAC2FDF87A57BAAECFD1BF478F6A006DE&itag=22&mm=31&requiressl=yes&mime=video%2Fmp4&source=youtube&ms=au&key=yt5&mv=m&mt=1426783576&fexp=900720%2C905648%2C907263%2C934954%2C9406733%

throw error on nested lua transactions

At the moment it is possible to (try to) open a transaction inside an open transaction. The results in a deadlock. find a mechanism to report a nested transaction as error.

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.