Giter VIP home page Giter VIP logo

Comments (12)

booyaa avatar booyaa commented on August 24, 2024 2

Time to write a test to reproduce it, so I can have a go fixing it! 😄

from simple-server.

steveklabnik avatar steveklabnik commented on August 24, 2024 2

It maybe that you've used one or more previous HTTP servers on127.0.0.1, and your cookie cache for this address contains a lot of cookies (well, enough to push the request size over 512 bytes). AFAIK, all these previous cookies (which haven't expired) will be sent to the example here.

That is amazing! Like a lightbulb. Great job debugging!

This means this is a duplicate of #19

from simple-server.

gmbeard avatar gmbeard commented on August 24, 2024 1

@booyaa Your stack trace output gives it away. The current request handling code is a little naive and each request cannot exceed 512 bytes, including headers. If it does, then it unwrap()s a Partial content response result, which panics.

To demonstrate, you can replicate this using CURL...

curl --header "X-SOME-HEADER: gWbWykBHgObDHriErqIKRBqebBekBpHsqUJqQcDtDctkaeeFBwNelgvzigaEkUPKAfcnYGhgbzDOvGumdewDzCqOantKfsvaZuggZaTjqtUzOXHVYwsSjknsMTPyWzvzGrNdRExaSIjiehYvuSAMdOMpwakKlKxCPwYAyAlpqXpoiargAZnAVIRfUJVpBnotmQRsDtAZoFfSXyRvqGQluzWWVTOCItNSCqBPUfFQGoxoSewvuSStgDtCYfCnFCFNczEwGkLiPidmrpbQDPuIvopUbxvojuUrBfgjoTwslrnDIJGAWIMoMkOQzYdzxVaCDfSQlmHwkpdkxByhuWXmuLgAzgJvIuhAMMlXaHIMcGmymGCxsgUjUkzKwrzafCsfkSivOXIzNSmTGhdgBufQTqdlRbuDBZijZCOXmpwhKFzlaSleXzgMaEpDiEjxzPUwIOwhomPDVSzaTqEZCpivNWyfunffMNUaLdkxLudYEpSgwTOGUipJjvXbocrKbfFG" http://127.0.0.1:7878

The fact that noone seems to have this problem points to your individual browser configuration. It maybe that you've used one or more previous HTTP servers on127.0.0.1, and your cookie cache for this address contains a lot of cookies (well, enough to push the request size over 512 bytes). AFAIK, all these previous cookies (which haven't expired) will be sent to the example here. Try opening the example in Private Mode to see if that solves it.

from simple-server.

booyaa avatar booyaa commented on August 24, 2024 1

Wow thanks @gmbeard switched to private and it didn't crash the server example! Time to go clear out the cookies for 127.0.0.1. Nice detective work!

from simple-server.

ashleygwilliams avatar ashleygwilliams commented on August 24, 2024

hey @booyaa ! thanks for filing. i just tried to reproduce this on my machine (same except i'm not on High Sierra) and could not. i'm gonna tag this with needs reproduction and see if we cant get someone else to reproduce it so we can get to fixing it!

if you happen to figure it out please follow up on this thread!

from simple-server.

urschrei avatar urschrei commented on August 24, 2024

Can't repro on High Sierra:

  • At commit: 66d8b4d
  • Safari Version 11.0 (13604.1.38.1.6)
  • rustc 1.21.0 (3b72af97e 2017-10-09), stable-x86_64-apple-darwin
  • System Version: macOS 10.13 (17A365)
  • Kernel Version: Darwin 17.0.0

from simple-server.

aaroncm avatar aaroncm commented on August 24, 2024

Can't repro here either.

  • Commit 66d8b4d
  • rustc 1.21.0 (3b72af97e 2017-10-09)
  • Safari Version 11.0 (13604.1.38.1.6)
  • Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

from simple-server.

mgattozzi avatar mgattozzi commented on August 24, 2024

It looks like @urschrei and @aaroncm are using a newer version of Safari. @booyaa maybe if you update Safari it'll solve your problem?

from simple-server.

lewiscowper avatar lewiscowper commented on August 24, 2024

Hello all,

I'm running the following versions of things, and can report no crash here. 😢

screen shot 2017-10-17 at 17 24 53

Version info
  • MacOS: High Sierra 10.13.1 Beta (17B35a)
  • Safari: 11.0.1 (13604.3.4)
  • Kernel: Darwin Kernel Version 17.2.0: Sun Oct 1 00:46:50 PDT 2017; root:xnu-4570.20.62~10/RELEASE_X86_64 x86_64
  • Rustc: 1.21.0 (3b72af97e 2017-10-09)
  • Cargo: 0.22.0 (3423351a5 2017-10-06)
  • Rustup: 1.6.0 (a11c01e8c 2017-08-30)

from simple-server.

mistydemeo avatar mistydemeo commented on August 24, 2024

I can't repro on High Sierra either.

Commit 66d8b4d
rustc 1.21.0
Safari Version 11.0 (13604.1.38.1.6)
Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

from simple-server.

Sadin avatar Sadin commented on August 24, 2024

Cant reproduce either.

  • rustc 1.21.0 (3b72af97e 2017-10-09)
  • Safari Version 11.0 (13604.1.38.1.6)
  • Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64

from simple-server.

booyaa avatar booyaa commented on August 24, 2024

This is definitely looking like a fault with this Safari build (12604.1.38.1.7).

Thanks everyone!

If anyone has a suggestion how I might catch what Safari is trying to send in the request to simple_server, would greatly appreciate it.

from simple-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.