• 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
  • 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 »
  • more generalizing of response writing (implemented a response writer...now it sh… ...
    d87cd09b
    …ould be possible to implement a stream writer for images
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • make http request and response childs of a common parent http message
    fa58a6cc
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • remove now obsoleted header_sort
    ab21de50
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • change response to tree based header storage and make everything work.
    e6766788
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • changed header hashing to use btree (GNU only). @TODO: make this conditional for… ...
    bf6a341b
    … other systems. Removed the qsort calls on server->fds making O(2nlogn) to O(n)
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • daemonize testserver now
    3d0057d4
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Directory »
  • fix seaks and hangs after adding response object (mostly not related with the re… ...
    983c9339
    …sponse object but how i integated it into serverRun
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • started a response handler and changed serverRun to use it for its response
    f82c178b
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »