send-failed-write.json 719 B

123456789101112131415161718192021222324252627282930313233343536
  1. [
  2. {
  3. "function": "get_resource_type",
  4. "params": [
  5. "@mock-stream"
  6. ],
  7. "return": "stream"
  8. },
  9. {
  10. "function": "fwrite",
  11. "params": [
  12. "@mock-stream"
  13. ],
  14. "return": false
  15. },
  16. {
  17. "function": "fclose",
  18. "params": [],
  19. "return": true
  20. },
  21. {
  22. "function": "stream_get_meta_data",
  23. "params": [
  24. "@mock-stream"
  25. ],
  26. "return": {
  27. "timed_out": true,
  28. "blocked": true,
  29. "eof": false,
  30. "stream_type": "tcp_socket\/ssl",
  31. "mode": "r+",
  32. "unread_bytes": 2,
  33. "seekable": false
  34. }
  35. }
  36. ]