News for hackers. Stuff that matters.
Re:/dev/null as a Service by jnbiche on Tuesday October 29, 2013 @05:32PM (#6637626)
Best nginx config ever?

  location /dev/null {
      if ($request_method = POST ) {
        return 200; 
      }
  }
Re:/dev/null as a Service by elwell on Tuesday October 29, 2013 @06:59PM (#6638130)
"200" makes sense. See wikipedia article on /dev/null[0]: "discards all data written to it but reports that the write operation succeeded."

[0] - http://en.wikipedia.org/wiki//dev/null

Re:/dev/null as a Service by einhverfr on Tuesday October 29, 2013 @09:14PM (#6638788)
wouldn't 202 be better?
Re:/dev/null as a Service by nine_k on Tuesday October 29, 2013 @10:46PM (#6639121)
204 No Content would.

202 assumes a possibility of further processing, but /dev/null can offer none.

Re:/dev/null as a Service by einhverfr on Wednesday October 30, 2013 @12:13AM (#6639451)
True, but that still mirrors the successful wrote responses in the UNIX file system, right?
Re:/dev/null as a Service by biot on Tuesday October 29, 2013 @06:43PM (#6638041)
Shouldn't it return the status code "410 Gone"?
Re:/dev/null as a Service by bad_user on Tuesday October 29, 2013 @06:57PM (#6638118)
I think it should be "204 No Content".
Re:/dev/null as a Service by siddboots on Tuesday October 29, 2013 @07:37PM (#6638343)
200 for a POST, 204 for a GET.
Re:/dev/null as a Service by jgemedina on Tuesday October 29, 2013 @06:59PM (#6638129)
I second this one! makes more sense than plain 200.
Re:/dev/null as a Service by darkchasma on Tuesday October 29, 2013 @07:22PM (#6638259)
I can't believe you guys are debating the correct HTTP return code for a joke service? Besides, it's obviously 200.
Re:/dev/null as a Service by einhverfr on Tuesday October 29, 2013 @09:15PM (#6638793)
These provide great opportunities for better understanding return codes.

Besides, for POST it is obviously 202 ACCEPTED

Re:/dev/null as a Service by Spooky23 on Tuesday October 29, 2013 @10:26PM (#6639051)
Does it discard data in a manner compliant with FIPS 140-2? Or NIST SP800-88?
Re:/dev/null as a Service by talles on Tuesday October 29, 2013 @07:45PM (#6638386)
Wait... is it a joke?
Re:/dev/null as a Service by Daviey on Wednesday October 30, 2013 @09:50AM (#6640494)
I hope not, I've been depending on this service for a while. I have it integrated via FUSE on my prod servers.

We did have some problems of blocking on large files, which is less than ideal for a /dev/null service.

After dealing with their customer support (which has been super helpful), we are looking to move to a named pipe / FIFO.. Which will non-block and cache lolcally, with a watcher service to push it to their site.

Happy Customer, A+++, would recommend.

Re:/dev/null as a Service by general_failure on Tuesday October 29, 2013 @09:33PM (#6638862)
Well with the planned dev/random support, this is going to kick ass.