• 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
  • 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 »
  • fixed bug at server destructor
    9198f7e7
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • reset keep_live flag on connection close
    cb50f09a
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • made a first cruel handling for keep-alive and non keep-alive requests. @TODO: this MUST BE cleaned
    3d735c7f
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • now only use keep-alive....
    6c888a8c
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Directory »
  • moved request_parser.h and request_queue.h in separeate request subfolder
    a4d09213
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • fix rather nasty reentrance bug ...
    6aef05cf
    as i first wrote the parser i used static valiables to hold the
    state of the currently parsed request.
    If a request would spread of multiple reads this would lead
    to one reqeust messing up the state of another.
    not those states are part of the parser object itself where
    they belong.
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »