hermanm Posted March 5, 2008 Report Share Posted March 5, 2008 I'm curious, why /gui/ is required as part of the URL. Was there a reason for not making the root page the GUI page? Link to comment Share on other sites More sharing options...
Firon Posted March 5, 2008 Report Share Posted March 5, 2008 because multiple things can be listening on the same port Link to comment Share on other sites More sharing options...
Lord Alderaan Posted March 5, 2008 Report Share Posted March 5, 2008 Because µtorrent listens for incoming connections on the root. Link to comment Share on other sites More sharing options...
hermanm Posted March 5, 2008 Author Report Share Posted March 5, 2008 > Because µtorrent listens for incoming connections on the root.That makes sense I guess. Link to comment Share on other sites More sharing options...
TooCrooked Posted March 28, 2008 Report Share Posted March 28, 2008 cant a HTTP request be singled out? and therefore, forward http requests to the proper directory? Link to comment Share on other sites More sharing options...
Lord Alderaan Posted March 28, 2008 Report Share Posted March 28, 2008 I'm guessing it's kept separate to prevent conflicts. Link to comment Share on other sites More sharing options...
Firon Posted March 29, 2008 Report Share Posted March 29, 2008 No. Link to comment Share on other sites More sharing options...
saivert Posted March 30, 2008 Report Share Posted March 30, 2008 The BitTorrent protocol is also based on HTTP, so you can't single it out based on protocol alone.Actually a lot of protocols are based on HTTP (additions to the HTTP protocol, with it's own headers) like Shoutcast, MMS (Microsoft's streaming protocol which has a HTTP fallback mode), and so on. This is to make it easy to implement, and also provide for easy proxying of the connections. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted March 31, 2008 Report Share Posted March 31, 2008 Indeed its all HTTP. In fact the /gui/ is part of the request-line defined in the HTTP protocol. It makes it easy to filter out webui requests from BitTorrent ones. It would be possible to differentiate between them based on other parts of the request but that would be a hairier and bug-prone solution hence my guesswork at keeping it 'separate' to prevent conflicts. Especially since it isn't gonna make sense to another peer when it receives "authorization failed" errors while trying to connect to a µtorrent peer (this will happen if it was all merged into the root and µtorrent would mistake an incoming connection for a webui one). Link to comment Share on other sites More sharing options...
neonpolaris Posted July 4, 2008 Report Share Posted July 4, 2008 So, this would be unneccesary if the webui were listening on an alternate port (8080)? Link to comment Share on other sites More sharing options...
Firon Posted July 4, 2008 Report Share Posted July 4, 2008 No, /gui/ is required even on an alternate port. Link to comment Share on other sites More sharing options...
neonpolaris Posted July 4, 2008 Report Share Posted July 4, 2008 Firon, I understand that you still have to include /gui/ when connecting on an alternate port. The /gui/ is hard-written into the webui. But if I'm understanding Lord Alderaan's technical reasons on post 9, then listening on another port would remove these reasons. Technically not needed, but still there.Or maybe I'm just not grasping something. Link to comment Share on other sites More sharing options...
jewelisheaven Posted July 8, 2008 Report Share Posted July 8, 2008 If you configure uT to NOT use /gui/ for the webui it MUST be hard coded... i.e. in the backend.You got your answer in any case. I think it could be changed, but why "fix" what's not broken. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted July 8, 2008 Report Share Posted July 8, 2008 neonpolaris there are other reasons to keep it on /gui/ on the alternative port. For example it makes programming the Javascript easier because the /gui/ can be (and currently is) hard-coded into it. Link to comment Share on other sites More sharing options...
neonpolaris Posted July 8, 2008 Report Share Posted July 8, 2008 I don't know why I was thinking the gui part was a function of the webui and not the backend. Either way, it's certainly not a problem. Thanks for all the hard work! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.