• Sign in

discontinued / server · Commits

Dogs2 white

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Snippets
  • Network
  • Commits 169
  • Network
  • Compare
  • Branches 1
  • Tags 0
  • server
19 Mar, 2016
40 commits
  • optmize header search
    e4975a92
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • changed all string operation within header handling with fixed length mem operat… ...
    9f801ba4
    …ions, preventing multiple iterations over these strings. In theory this should improve performance in reality it seems that it is worse...CHECK WHY
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • fix initialization of search value
    ac6873fe
    Georg Hopp authored
    2016-03-19 18:58:32 +0100  
    Browse Files »
  • ed
    b3413f40
    Georg Hopp authored
    2016-03-19 18:58:32 +0100  
    Browse Files »
  • structural changes for worker/process. @TODO actually i have no idea why this happens.
    87b0d50d
    Georg Hopp authored
    2016-03-19 18:58:32 +0100  
    Browse Files »
  • fix memory problems occured with latest changes
    dfcbc494
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • fixed bug in keep-alive check arised by implementation if #10
    fc4fd8f6
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • add forgotten jquery assets
    2e46b5c2
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • closes #10: values for header ids are now stored in a char ** making multiple va… ...
    59ccbf02
    …lues for one id possible. Additionally added a jquery action that delivers the jquery java script and use it on the me action
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Directory »
  • now when a constructor returns -1 the new call will in turn call the destructor … ...
    424297cd
    …effectively freeing all resources. ATTENTION: now the destructor has to be aware that it might be called with a not completely initialized object. To make this more ease there is the FREE makro with the corresponding ffree that does NULL pointer checking and the destructor checks for NULL pointer too. Additionally the handle_accept now handles _SC_OPEN_MAX - 10 connections. The 10 are reserved for internal usage.
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • now a child is spawned and writes random values in a shared memory segment. Thes… ...
    01ae8736
    …e values will be shown in the me action
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • some code cleanups...no changes in the logic
    7f688412
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • move sdbm implementation in one file.
    8298740d
    Georg Hopp authored
    2016-03-19 16:21:39 +0100  
    Browse Files »
  • changed /**/ single line comments to //
    063189e6
    Georg Hopp authored
    2016-03-19 16:21:39 +0100  
    Browse Directory »
  • start documenting this whole stuff...well at least add a copyright information in each file
    b38d4022
    Georg Hopp authored
    2016-03-19 16:21:39 +0100  
    Browse Files »
  • first very crude, not complete, experimental 304 test implementation
    7466e592
    Georg Hopp authored
    2016-03-19 16:19:44 +0100  
    Browse Files »
  • disconnect on invalid request line
    abd69d0a
    Georg Hopp authored
    2016-03-19 16:18:44 +0100  
    Browse Files »
  • now incomplete requests should no longer block the complete server. Tested with … ...
    dfdfd20d
    …\'echo -en "GET / HTTP\r\nConn" | nc -w 600 localhost 11212\' and then doing requests from my browser. @TODO: cleanup those stuff, check if a not correctly response reading would block the server.
    Georg Hopp authored
    2016-03-19 16:17:24 +0100  
    Browse Files »
  • increase writebuffer size a lot.
    eae798e5
    Georg Hopp authored
    2016-03-19 16:17:24 +0100  
    Browse Files »
  • fixed the non keep-alive performance issue as well as i lower memory usage by us… ...
    dbb70423
    …ing a single read and write circular buffer for every connection. @TODO: i noticed a server hang while getting large data (my image) with non keep-alive connections. Additionally an incomplete keep-alive request might stop the server now as the lock on the read buffer will not be released.
    Georg Hopp authored
    2016-03-19 16:17:24 +0100  
    Browse Files »
  • another try with the shmen trick...this time use MAP_ANONYMOUS ... as GNU extension.
    31b7d755
    Georg Hopp authored
    2016-03-19 16:16:22 +0100  
    Browse Files »
  • added missing header file to repo
    5c3928d4
    Georg Hopp authored
    2016-03-19 16:16:22 +0100  
    Browse Files »
  • another try with a shared memory based ringbuffer...this performs well for keep-… ...
    f2dbad19
    …alive sessions but is much slower without. actually i am not sure why but most likely the shared memory setup is quite expensive. @TODO: make a profiling.
    Georg Hopp authored
    2016-03-19 16:16:22 +0100  
    Browse Files »
  • fix inf loop. @TODO: This whole handling has to be cleaned.
    45b4b354
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • this change hopefully makes the shm trick work on amd64
    6cd673b4
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • lots of changes but primarily change the request parser to use a ringbuffer. The… ...
    e8a21ace
    … ringbuffer is implemented using the shared memory trick.
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • some more cleanups in the server code. Removing not needed header includes
    5c1c6a80
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • now the separated http worker works. Changed some size_t to ssize_t as i use -1 … ...
    6550e381
    …and -2 es error indicator in my server and fixed caculation of remainig buffer size in reader
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • separated the server completely from the http processing
    20af2baa
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • add subject/observer interface
    95d12d80
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • add subject/observer interface
    de00ad47
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • fix infinite busy loop in run
    b122f341
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • dynamically get and free buffer for response write pipe now
    3497eb87
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • increase write buffer
    e35308f8
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • use one dynamic buffer less and save at least one write on small responses
    92379ebb
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • removed generated docs
    6b1605d2
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • fixed bug in new response handling
    4eb98a5a
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • better response handling but still buggy with stream piping
    1b7ef503
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • now load image from actual server
    c8461176
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • first working version of content delivery from file....very crude... @TODO: rewr… ...
    0fba746f
    …ite complete response handline.
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »